|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.bio.seq.RichLocation.Strand
public static class RichLocation.Strand
This class represents a strand on which a location may lie. Three strands are defined by default - UNKNOWN, NEGATIVE, and POSITIVE.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
int |
compareTo(Object o)
Strands are compared first by symbol, then by number. |
boolean |
equals(Object o)
Strands are equal if their numbers and symbols match. |
static RichLocation.Strand |
forName(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. |
String |
getName()
Returns the string symbol of this strand. |
int |
hashCode()
|
int |
intValue()
Returns the numeric value of this strand. |
String |
toString()
Form: "symbol" (eg. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RichLocation.Strand POSITIVE_STRAND
public static final RichLocation.Strand NEGATIVE_STRAND
public static final RichLocation.Strand UNKNOWN_STRAND
Method Detail |
---|
public static RichLocation.Strand forValue(int value)
value
- the number of the strand.
public static RichLocation.Strand forName(String name)
name
- the symbol of the strand.
public int intValue()
public String getName()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |