public class PointLocation extends AbstractRangeLocation implements Location, Serializable
min and max are always equal for this implementation
empty, full, naturalOrder| Constructor and Description |
|---|
PointLocation(int point) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int p)
Checks if this location contains a point.
|
int |
getMax()
The maximum position contained.
|
int |
getMin()
The minimum position contained.
|
String |
toString() |
Location |
translate(int dist)
Create a location that is a translation of this location.
|
blockIterator, isContiguous, symbolscontains, equals, getDecorator, hashCode, intersection, newInstance, overlaps, unionclone, finalize, getClass, notify, notifyAll, wait, wait, waitblockIterator, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, unionpublic PointLocation(int point)
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
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
public boolean contains(int p)
Locationcontains in interface Locationcontains in class AbstractRangeLocationp - the point to checkpublic Location translate(int dist)
LocationCopyright © 2020 BioJava. All rights reserved.