Package org.openscience.cdk.interfaces
Enum ITetrahedralChirality.Stereo
- java.lang.Object
-
- java.lang.Enum<ITetrahedralChirality.Stereo>
-
- org.openscience.cdk.interfaces.ITetrahedralChirality.Stereo
-
- All Implemented Interfaces:
Serializable
,Comparable<ITetrahedralChirality.Stereo>
- Enclosing interface:
- ITetrahedralChirality
public static enum ITetrahedralChirality.Stereo extends Enum<ITetrahedralChirality.Stereo>
Enumeration that defines the two possible chiralities for this stereochemistry type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANTI_CLOCKWISE
CLOCKWISE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ITetrahedralChirality.Stereo
invert()
Invert this conformation, inv(clockwise) = anti_clockwise, inv(anti_clockwise) = clockwise.static int
toConfig(ITetrahedralChirality.Stereo stereo)
static ITetrahedralChirality.Stereo
toStereo(int cfg)
static ITetrahedralChirality.Stereo
valueOf(String name)
Returns the enum constant of this type with the specified name.static ITetrahedralChirality.Stereo[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOCKWISE
public static final ITetrahedralChirality.Stereo CLOCKWISE
-
ANTI_CLOCKWISE
public static final ITetrahedralChirality.Stereo ANTI_CLOCKWISE
-
-
Method Detail
-
values
public static ITetrahedralChirality.Stereo[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ITetrahedralChirality.Stereo c : ITetrahedralChirality.Stereo.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ITetrahedralChirality.Stereo valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toConfig
public static int toConfig(ITetrahedralChirality.Stereo stereo)
-
toStereo
public static ITetrahedralChirality.Stereo toStereo(int cfg)
-
invert
public ITetrahedralChirality.Stereo invert()
Invert this conformation, inv(clockwise) = anti_clockwise, inv(anti_clockwise) = clockwise.- Returns:
- the inverse conformation
-
-