public static class RichLocation.Strand
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static RichLocation.Strand |
NEGATIVE_STRAND
The negative strand is represented by the symbol '-' and has the
number -1.
|
static RichLocation.Strand |
POSITIVE_STRAND
The positive strand is represented by the symbol '+' and has the
number 1.
|
static RichLocation.Strand |
UNKNOWN_STRAND
The unknown strand is represented by the symbol '?' and has the
number 0.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Strands are compared first by symbol, then by number.
|
boolean |
equals(java.lang.Object o)
Strands are equal if their numbers and symbols match.
|
static RichLocation.Strand |
forName(java.lang.String name)
Returns the strand object that matches the symbol given.
|
static RichLocation.Strand |
forValue(int value)
Returns the strand object that matches the number given.
|
java.lang.String |
getName()
Returns the string symbol of this strand.
|
int |
hashCode() |
int |
intValue()
Returns the numeric value of this strand.
|
java.lang.String |
toString()
Form: "symbol" (eg.
|
public static final RichLocation.Strand POSITIVE_STRAND
public static final RichLocation.Strand NEGATIVE_STRAND
public static final RichLocation.Strand UNKNOWN_STRAND
public static RichLocation.Strand forValue(int value)
value
- the number of the strand.public static RichLocation.Strand forName(java.lang.String name)
name
- the symbol of the strand.public int intValue()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable