Package org.openscience.cdk.interfaces
Enum IDoubleBondStereochemistry.Conformation
- java.lang.Object
-
- java.lang.Enum<IDoubleBondStereochemistry.Conformation>
-
- org.openscience.cdk.interfaces.IDoubleBondStereochemistry.Conformation
-
- All Implemented Interfaces:
Serializable
,Comparable<IDoubleBondStereochemistry.Conformation>
- Enclosing interface:
- IDoubleBondStereochemistry
public static enum IDoubleBondStereochemistry.Conformation extends Enum<IDoubleBondStereochemistry.Conformation>
Enumeration that defines the two possible values for this stereochemistry type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IDoubleBondStereochemistry.Conformation
invert()
Invert this conformation, inv(together) = opposite, inv(opposite) = together.static int
toConfig(IDoubleBondStereochemistry.Conformation conformation)
static IDoubleBondStereochemistry.Conformation
toConformation(int config)
static IDoubleBondStereochemistry.Conformation
valueOf(String name)
Returns the enum constant of this type with the specified name.static IDoubleBondStereochemistry.Conformation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOGETHER
public static final IDoubleBondStereochemistry.Conformation TOGETHER
-
OPPOSITE
public static final IDoubleBondStereochemistry.Conformation OPPOSITE
-
-
Method Detail
-
values
public static IDoubleBondStereochemistry.Conformation[] 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 (IDoubleBondStereochemistry.Conformation c : IDoubleBondStereochemistry.Conformation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IDoubleBondStereochemistry.Conformation 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
-
toConformation
public static IDoubleBondStereochemistry.Conformation toConformation(int config)
-
toConfig
public static int toConfig(IDoubleBondStereochemistry.Conformation conformation)
-
invert
public IDoubleBondStereochemistry.Conformation invert()
Invert this conformation, inv(together) = opposite, inv(opposite) = together.- Returns:
- the inverse conformation
-
-