public class RangeLocation extends AbstractRangeLocation implements Serializable
This will in practice be the most commonly used pure-java implementation.
empty, full, naturalOrder
Constructor and Description |
---|
RangeLocation(int min,
int max)
Construct a new RangeLocation from
min to max . |
Modifier and Type | Method and Description |
---|---|
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, contains, isContiguous, symbols
contains, equals, getDecorator, hashCode, intersection, newInstance, overlaps, union
public RangeLocation(int min, int max) throws IndexOutOfBoundsException
min
to max
.IndexOutOfBoundsException
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 Location translate(int dist)
Location
Copyright © 2014 BioJava. All rights reserved.