harpoon.Util.Collections
Class IntervalTree.Interval
java.lang.Object
|
+--harpoon.Util.Collections.IntervalTree.Interval
- Enclosing class:
- IntervalTree
- public static class IntervalTree.Interval
- extends Object
Immutable record representing a closed interval
[low
,high
] holding an object
obj
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
low
public final int low
high
public final int high
datum
public final Object datum
IntervalTree.Interval
public IntervalTree.Interval(Object datum,
int low,
int high)
overlaps
public boolean overlaps(IntervalTree.Interval i)