public class CoordinateSet extends TreeSet<Coordinate> implements Serializable
Constructor and Description |
---|
CoordinateSet()
Public Constructor for a new Empty instance.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
containsCoordinateWithoutGaps(Coordinate test)
Returns whether a test Coordinate is contained in this CoordinateSet range WITHOUT any gaps.
|
Integer |
getEnd()
Returns the very last position of the last Coordinate in this CoordinateSet.
|
CoordinateSet |
getGaps()
Returns a CoordinateSet containing Coordinates for all of the gaps in this
CoordinateSet.
|
Integer |
getLength()
Returns the length of the extent/range of this CoordinateSet (accounting for
any span of the absent ZERO).
|
Coordinate |
getRange()
Returns a Coordinate representing the extent or range of this CoordinateSet
|
Integer |
getStart()
Returns the very first position of the first Coordinate in this CoordinateSet.
|
CoordinateSet |
getUncoveredRegions(Coordinate test)
Returns the CoordinateSet (ordered set of Coordinates) that define regions
of the test Coordinate not represented (covered) in this CoordinateSet.
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
equals, hashCode, removeAll
containsAll, retainAll, toArray, toArray, toString
public CoordinateSet()
public Integer getStart()
public Integer getEnd()
public Coordinate getRange()
public Integer getLength()
public CoordinateSet getGaps()
public Boolean containsCoordinateWithoutGaps(Coordinate test)
test
- public CoordinateSet getUncoveredRegions(Coordinate test)
test
- JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3