Package pl.poznan.put.notation
Enum StackingTopology
- All Implemented Interfaces:
Serializable
,Comparable<StackingTopology>
,java.lang.constant.Constable
Stacking topologies are described in: New Metrics for Comparing and Assessing Discrepancies
between RNA 3D Structures and Models. M. Parisien, J.A. Cruz, E. Westhof, F. Major. RNA. 2009.
15(10):1875–1885. doi:10.1261/rna.1700409
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StackingTopology
fromString
(String candidate) Finds an enum constant that matches the given one or return a predefined UNKNOWN value.invert()
static StackingTopology
Returns the enum constant of this type with the specified name.static StackingTopology[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPWARD
-
DOWNWARD
-
INWARD
-
OUTWARD
-
UNKNOWN
-
-
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
-
fromString
Finds an enum constant that matches the given one or return a predefined UNKNOWN value.- Parameters:
candidate
- A string representing a StackingTopology value.- Returns:
- An instance of this class that matches given name or UNKNOWN if none does.
-
displayName
- Returns:
- The default display name.
-
invert
- Returns:
- An instance where up- and down- or in- and out- are inverted.
-