sg.edu.nus.util
Class Range

java.lang.Object
  extended by sg.edu.nus.util.Range

public class Range
extends java.lang.Object

Implement a range for range query

Author:
David Jiang

Constructor Summary
Range(BoundaryValue min, BoundaryValue max)
           
 
Method Summary
 int compareTo(java.lang.String value)
          Compare the value with the range >0 for greater =0 for equal <0 for less than
 BoundaryValue getMaxValue()
           
 BoundaryValue getMinValue()
           
 void setMaxValue(BoundaryValue maxValue)
           
 void setMinValue(BoundaryValue minValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Range

public Range(BoundaryValue min,
             BoundaryValue max)
Method Detail

setMinValue

public void setMinValue(BoundaryValue minValue)
Parameters:
minValue - the minValue to set

getMinValue

public BoundaryValue getMinValue()
Returns:
the minValue

setMaxValue

public void setMaxValue(BoundaryValue maxValue)
Parameters:
maxValue - the maxValue to set

getMaxValue

public BoundaryValue getMaxValue()
Returns:
the maxValue

compareTo

public int compareTo(java.lang.String value)
Compare the value with the range >0 for greater =0 for equal <0 for less than