jsky.catalog
Class ValueRange

java.lang.Object
  extended by jsky.catalog.ValueRange
All Implemented Interfaces:
java.io.Serializable

public class ValueRange
extends java.lang.Object
implements java.io.Serializable

Represents a range of values, given by minValue and maxValue, where minValue <= x <= maxValue.

See Also:
Serialized Form

Constructor Summary
ValueRange(java.lang.Comparable value)
          Initialize from the given value (tests for equality)
ValueRange(java.lang.Comparable minValue, boolean minInclusive, java.lang.Comparable maxValue, boolean maxInclusive)
          Initialize from the given min and max values and the flags.
ValueRange(java.lang.Comparable minValue, java.lang.Comparable maxValue)
          Initialize from the given min and max values
 
Method Summary
 java.lang.Comparable getMaxValue()
          Return the maximum value.
 java.lang.Comparable getMinValue()
          Return the minimum value.
 boolean isMaxInclusive()
          Return True if the range includes the max value.
 boolean isMinInclusive()
          Return True if the range includes the min value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueRange

public ValueRange(java.lang.Comparable value)
Initialize from the given value (tests for equality)


ValueRange

public ValueRange(java.lang.Comparable minValue,
                  java.lang.Comparable maxValue)
Initialize from the given min and max values


ValueRange

public ValueRange(java.lang.Comparable minValue,
                  boolean minInclusive,
                  java.lang.Comparable maxValue,
                  boolean maxInclusive)
Initialize from the given min and max values and the flags.

Parameters:
minValue - the minimum value.
minInclusive - true if the range includes the min value.
maxValue - the maximum value.
maxInclusive - true if the range includes the max value.
Method Detail

getMinValue

public java.lang.Comparable getMinValue()
Return the minimum value.


getMaxValue

public java.lang.Comparable getMaxValue()
Return the maximum value.


isMinInclusive

public boolean isMinInclusive()
Return True if the range includes the min value.


isMaxInclusive

public boolean isMaxInclusive()
Return True if the range includes the max value.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object