Serializable, Comparable<Strand>public enum Strand extends Enum<Strand>
| Enum Constant | Description |
|---|---|
NEGATIVE |
Represents the negative or reverse strand.
|
NONE |
Denotes that a strand designation is not applicable
or is unknown.
|
POSITIVE |
Represents the positive or forward strand.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Strand |
FORWARD |
Common alias for the
POSITIVE strand. |
static Strand |
REVERSE |
Common alias for the
NEGATIVE strand. |
| Modifier and Type | Method | Description |
|---|---|---|
static Strand |
decode(char ch) |
Returns the
Strand that a char value represents. |
static Strand |
decode(String encoding) |
|
String |
encode() |
Returns a string representation of this
Strand |
char |
encodeAsChar() |
Returns a single char encoding of this
Strand. |
static Strand |
toStrand(String encoding) |
Deprecated.
please use
decode(char) instead. |
String |
toString() |
|
static Strand |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Strand[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Strand POSITIVE
public static final Strand NEGATIVE
public static final Strand NONE
public static Strand[] values()
for (Strand c : Strand.values()) System.out.println(c);
public static Strand valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Deprecated public static Strand toStrand(String encoding)
decode(char) instead.encoding - the encoding stringpublic static Strand decode(char ch)
Strand that a char value represents.ch - the char encoding for a Strand.null, a value so that decode(c).encodeAsChar() == c or NONE if
the encoding char is not recognized.public static Strand decode(String encoding)
encoding - the strand string representation.null, a value so that decode(s).encode().equals(s), or NONE if
the encoding string is not recognized.public String encode()
Strandnull, a value so that decode(encode(X)) == X.public char encodeAsChar()
Strand.decode(encodeAsChar(X)) == X.