com.facetmap.simple
Class Range
java.lang.Object
com.facetmap.simple.Range
public class Range
- extends java.lang.Object
Maps a heading onto a subset of a linearly represented Taxonomy.
The segment's first leaf is at index start and
its last leaf is at index (end-1). Thus the number
of leaves in the segment is end - start.
- See Also:
Taxonomy
|
Constructor Summary |
Range(int a,
int b)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
start
public int start
end
public int end
Range
public Range(int a,
int b)
length
public int length()
equals
public boolean equals(java.lang.Object seg)
- Overrides:
equals in class java.lang.Object
isWithin
public boolean isWithin(Range seg)
isWithinOrEquals
public boolean isWithinOrEquals(Range range)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object