Enum Constant and 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 and Description |
---|---|
static Strand |
FORWARD
Common alias for the
POSITIVE strand. |
static Strand |
REVERSE
Common alias for the
NEGATIVE strand. |
Modifier and Type | Method and Description |
---|---|
static Strand |
decode(char ch)
Returns the
Strand that a char value represents. |
static Strand |
decode(java.lang.String encoding)
Returns the
Strand that a String encodes for. |
java.lang.String |
encode()
Returns a string representation of this
Strand |
char |
encodeAsChar()
Returns a single char encoding of this
Strand . |
static Strand |
toStrand(java.lang.String encoding)
Deprecated.
please use
decode(char) instead. |
java.lang.String |
toString() |
static Strand |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static Strand toStrand(java.lang.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(java.lang.String encoding)
Strand
that a String
encodes for.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 java.lang.String encode()
Strand
null
, a value so that decode(encode(X)) == X
.public char encodeAsChar()
Strand
.decode(encodeAsChar(X)) == X
.public java.lang.String toString()
toString
in class java.lang.Enum<Strand>