org.biojava3.core.sequence.location
Class SequenceLocation<S extends AbstractSequence<C>,C extends Compound>

java.lang.Object
  extended by org.biojava3.core.sequence.location.template.AbstractLocation
      extended by org.biojava3.core.sequence.location.SimpleLocation
          extended by org.biojava3.core.sequence.location.SequenceLocation<S,C>
All Implemented Interfaces:
Iterable<Location>, Location, Accessioned

public class SequenceLocation<S extends AbstractSequence<C>,C extends Compound>
extends SimpleLocation

A location in a sequence that keeps a reference to its parent sequence

Author:
Scooter Willis

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.biojava3.core.sequence.location.template.Location
Location.Tools
 
Field Summary
 
Fields inherited from interface org.biojava3.core.sequence.location.template.Location
EMPTY
 
Constructor Summary
SequenceLocation(int start, int end, S sequence)
           
 
Method Summary
 S getSequence()
           
 
Methods inherited from class org.biojava3.core.sequence.location.template.AbstractLocation
assertLocation, canComplement, equals, getAccession, getEnd, getLength, getRelevantSubLocations, getRelevantSubSequence, getStart, getStrand, getSubLocations, getSubSequence, hashCode, isBetweenCompounds, isCircular, isComplex, iterator, reverseSequence, setAccession, setBetweenCompounds, setCircular, setEnd, setStart, setStrand, setSubLocations, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceLocation

public SequenceLocation(int start,
                        int end,
                        S sequence)
Method Detail

getSequence

public S getSequence()
Returns:
the sequence