|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.symbol.AbstractLocation
org.biojava.bio.symbol.AbstractRangeLocation
org.biojava.bio.symbol.PointLocation
A location representing a single point. This can be considered as the singleton set of one integer.
min and max are always equal for this implementation
Field Summary |
Fields inherited from interface org.biojava.bio.symbol.Location |
empty, naturalOrder |
Constructor Summary | |
PointLocation(int point)
|
Method Summary | |
boolean |
contains(int p)
Checks if this location contains a point. |
int |
getMax()
The maximum position contained. |
int |
getMin()
The minimum position contained. |
java.lang.String |
toString()
|
Location |
translate(int dist)
Create a location that is a translation of this location. |
Methods inherited from class org.biojava.bio.symbol.AbstractRangeLocation |
blockIterator, isContiguous, symbols |
Methods inherited from class org.biojava.bio.symbol.AbstractLocation |
contains, equals, getDecorator, hashCode, intersection, newInstance, overlaps, union |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.biojava.bio.symbol.Location |
blockIterator, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, union |
Constructor Detail |
public PointLocation(int point)
Method Detail |
public int getMin()
Location
WARNING: The location will not contain every point between getMin()
and getMax()
if isContiguous()
is false. If isContiguous()
does return false you should use the Iterator
returned by blockIterator()
to iterate over the minimum set of contiguous blocks that make up this Location
getMin
in interface Location
public int getMax()
Location
WARNING: The location will not contain every point between getMin()
and getMax()
if isContiguous()
is false. If isContiguous()
does return false you should use the Iterator
returned by blockIterator()
to iterate over the minimum set of contiguous blocks that make up this Location
getMax
in interface Location
public boolean contains(int p)
Location
contains
in interface Location
contains
in class AbstractRangeLocation
public Location translate(int dist)
Location
translate
in interface Location
dist
- the distance to translate (to the right)public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |