JUtil

net.cscott.jutil
Class IntervalTree.Interval

java.lang.Object
  extended by net.cscott.jutil.IntervalTree.Interval
Enclosing class:
IntervalTree

public static class IntervalTree.Interval
extends Object

Immutable record representing a closed interval [low,high] holding an object obj.


Field Summary
 Object datum
           
 int high
           
 int low
           
 
Constructor Summary
IntervalTree.Interval(Object datum, int low, int high)
           
 
Method Summary
 boolean overlaps(IntervalTree.Interval i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

low

public final int low

high

public final int high

datum

public final Object datum
Constructor Detail

IntervalTree.Interval

public IntervalTree.Interval(Object datum,
                             int low,
                             int high)
Method Detail

overlaps

public boolean overlaps(IntervalTree.Interval i)

JUtil

Copyright (c) 2006 C. Scott Ananian