Package org.biojava.bio.symbol
Class PointLocation
java.lang.Object
org.biojava.bio.symbol.AbstractLocation
org.biojava.bio.symbol.AbstractRangeLocation
org.biojava.bio.symbol.PointLocation
- All Implemented Interfaces:
Serializable,Location
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
- Author:
- Matthew Pocock
- See Also:
-
Field Summary
Fields inherited from interface org.biojava.bio.symbol.Location
empty, full, naturalOrder -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.biojava.bio.symbol.AbstractRangeLocation
blockIterator, isContiguous, symbolsMethods inherited from class org.biojava.bio.symbol.AbstractLocation
contains, equals, getDecorator, hashCode, intersection, newInstance, overlaps, unionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biojava.bio.symbol.Location
blockIterator, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, union
-
Constructor Details
-
PointLocation
-
-
Method Details
-
getMin
Description copied from interface:LocationThe minimum position contained.WARNING: The location will not contain every point between
getMin()andgetMax()ifisContiguous()is false. IfisContiguous()does return false you should use theIteratorreturned byblockIterator()to iterate over the minimum set of contiguous blocks that make up thisLocation -
getMax
Description copied from interface:LocationThe maximum position contained.WARNING: The location will not contain every point between
getMin()andgetMax()ifisContiguous()is false. IfisContiguous()does return false you should use theIteratorreturned byblockIterator()to iterate over the minimum set of contiguous blocks that make up thisLocation -
contains
Description copied from interface:LocationChecks if this location contains a point.- Specified by:
containsin interfaceLocation- Overrides:
containsin classAbstractRangeLocation- Parameters:
p- the point to check- Returns:
- true if this contains p, otherwise false
-
translate
Description copied from interface:LocationCreate a location that is a translation of this location. -
toString
-