|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.catalog.ValueRange
public class ValueRange
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 |
---|
public ValueRange(Comparable value)
public ValueRange(Comparable minValue, Comparable maxValue)
public ValueRange(Comparable minValue, boolean minInclusive, Comparable maxValue, boolean maxInclusive)
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 |
---|
public Comparable getMinValue()
public Comparable getMaxValue()
public boolean isMinInclusive()
public boolean isMaxInclusive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |