com.facetmap.simple
Class Range

java.lang.Object
  extended by 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

Field Summary
 int end
           
 int start
           
 
Constructor Summary
Range(int a, int b)
           
 
Method Summary
 boolean equals(java.lang.Object seg)
           
 boolean isWithin(Range seg)
           
 boolean isWithinOrEquals(Range range)
           
 int length()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public int start

end

public int end
Constructor Detail

Range

public Range(int a,
             int b)
Method Detail

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