jsky.catalog
Class ValueRange

java.lang.Object
  extended by jsky.catalog.ValueRange

public class ValueRange
extends Object

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


Constructor Summary
ValueRange(Comparable value)
          Initialize from the given value (tests for equality)
ValueRange(Comparable minValue, boolean minInclusive, Comparable maxValue, boolean maxInclusive)
          Initialize from the given min and max values and the flags.
ValueRange(Comparable minValue, Comparable maxValue)
          Initialize from the given min and max values
 
Method Summary
 Comparable getMaxValue()
          Return the maximum value.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueRange

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


ValueRange

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


ValueRange

public ValueRange(Comparable minValue,
                  boolean minInclusive,
                  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 Comparable getMinValue()
Return the minimum value.


getMaxValue

public 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.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.