org.eigenbase.sarg
Class SargIntervalSequence

java.lang.Object
  extended by org.eigenbase.sarg.SargIntervalSequence

public class SargIntervalSequence
extends Object

SargIntervalSequence represents the union of a set of disjoint SargInterval instances. (If any adjacent intervals weren't disjoint, they would have been combined into one bigger one before creation of the sequence.) Intervals are maintained in coordinate order.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sarg/SargIntervalSequence.java#8 $
Author:
John V. Sichi

Field Summary
(package private)  List<SargInterval> list
           
 
Constructor Summary
SargIntervalSequence()
           
 
Method Summary
(package private)  void addInterval(SargInterval interval)
           
 List<SargInterval> getList()
           
 boolean isEmpty()
           
 boolean isPoint()
           
 boolean isRange()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

final List<SargInterval> list
Constructor Detail

SargIntervalSequence

SargIntervalSequence()
Method Detail

isPoint

public boolean isPoint()
Returns:
true if this sequence represents a point range.

isEmpty

public boolean isEmpty()
Returns:
true if this sequence represents an empty range.

isRange

public boolean isRange()
Returns:
true if this sequence represents a non-point, non-empty range.

getList

public List<SargInterval> getList()
Returns:
unmodifiable list representing this sequence

addInterval

void addInterval(SargInterval interval)

toString

public String toString()
Overrides:
toString in class Object