Enum Class Strand
- All Implemented Interfaces:
Serializable, Comparable<Strand>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Stranddecode(char ch) Returns theStrandthat acharvalue represents.static Strandencode()Returns a string representation of thisStrandcharReturns a single char encoding of thisStrand.static StrandDeprecated.toString()static StrandReturns the enum constant of this class with the specified name.static Strand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSITIVE
Represents the positive or forward strand. -
NEGATIVE
Represents the negative or reverse strand. -
NONE
Denotes that a strand designation is not applicable or is unknown.
-
-
Field Details
-
FORWARD
-
REVERSE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toStrand
Deprecated.please usedecode(char)instead.provide a way to take an encoding string, and produce a Strand- Parameters:
encoding- the encoding string- Returns:
- a Strand object, if an appropriate one cannot be located an IllegalArg exception
-
decode
-
decode
-
encode
-
encodeAsChar
public char encodeAsChar()Returns a single char encoding of thisStrand.- Returns:
- a value so that
decode(encodeAsChar(X)) == X.
-
toString
-
decode(char)instead.