public class ValueRange extends Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public Comparable getMinValue()
public Comparable getMaxValue()
public boolean isMinInclusive()
public boolean isMaxInclusive()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.