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, symbols
contains, equals, getDecorator, hashCode, intersection, newInstance, overlaps, union
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
blockIterator, contains, equals, getDecorator, intersection, isContiguous, newInstance, overlaps, symbols, union
public 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)
Location
contains
in interface Location
contains
in class AbstractRangeLocation
p
- the point to checkpublic Location translate(int dist)
Location
Copyright © 2014 BioJava. All rights reserved.