Enum Stoichiometry.StringOverflowStrategy
java.lang.Object
java.lang.Enum<Stoichiometry.StringOverflowStrategy>
org.biojava.nbio.structure.symmetry.core.Stoichiometry.StringOverflowStrategy
- All Implemented Interfaces:
Serializable
,Comparable<Stoichiometry.StringOverflowStrategy>
,java.lang.constant.Constable
- Enclosing class:
Stoichiometry
public static enum Stoichiometry.StringOverflowStrategy
extends Enum<Stoichiometry.StringOverflowStrategy>
What to do when the number of
SubunitCluster
exceeds the length of the alphabet.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe strategy is defined via an external function, we do not have to do anything.Cycle through the alphabet (e.g., ...xyzABC...)Represent every cluster with two symbols from the alphabet, this forces us to specify number of subunits for every subunit (e.g., AA1AB1AC1...).Put '?' -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static Stoichiometry.StringOverflowStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUESTIONMARK
Put '?' symbol for every (alphabet.length+i)-th cluster -
CYCLE
Cycle through the alphabet (e.g., ...xyzABC...) -
DOUBLE
Represent every cluster with two symbols from the alphabet, this forces us to specify number of subunits for every subunit (e.g., AA1AB1AC1...). This strategy will not work correctly if there are more than alphabet.length^2 subunit clusters. -
CUSTOM
The strategy is defined via an external function, we do not have to do anything.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-