gov.lbl.genome.common.features
Class ChromPosition

java.lang.Object
  extended by gov.lbl.genome.common.features.ChromPosition
Direct Known Subclasses:
Gap

public class ChromPosition
extends java.lang.Object

ChromPosition represents a position in a DNA sequence.


Constructor Summary
ChromPosition(java.lang.String inChromosome, long inCoordinate)
          ChromPosition
ChromPosition(java.lang.String inSequence, java.lang.String inChromosome, long inCoordinate)
          ChromPosition
 
Method Summary
static java.lang.Object fromString(java.lang.String string)
          Restore a ChromPosition object from a one-line string.
 java.lang.String getChromosome()
          get Chromosome
 long getCoordinate()
          get Coordinate
 java.lang.String getSequence()
          get Sequence
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChromPosition

public ChromPosition(java.lang.String inChromosome,
                     long inCoordinate)
ChromPosition

Parameters:
inChromosome - String
inCoordinate - long

ChromPosition

public ChromPosition(java.lang.String inSequence,
                     java.lang.String inChromosome,
                     long inCoordinate)
ChromPosition

Parameters:
inSequence - String
inChromosome - String
inCoordinate - long
Method Detail

getSequence

public java.lang.String getSequence()
get Sequence

Returns:
String

getChromosome

public java.lang.String getChromosome()
get Chromosome

Returns:
String

getCoordinate

public long getCoordinate()
get Coordinate

Returns:
long

fromString

public static java.lang.Object fromString(java.lang.String string)
Restore a ChromPosition object from a one-line string. This is a convenience method for use in serializing ChromPosition objects through a web page.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object