public class NumberRange extends Range<Number>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
TODO: javadoc.
|
MAX_UNBOUND, MIN_UNBOUND
Constructor and Description |
---|
NumberRange()
The constructor.
|
NumberRange(Number min,
Number max)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Comparator<? super Number> |
getComparator() |
getMax, getMaximumValue, getMin, getMinimumValue, isContained, toString, verifyContained
private static final long serialVersionUID
public NumberRange()
public NumberRange(Number min, Number max)
min
- - see Range.getMin()
. To create an open range use the minimum value.max
- - see Range.getMax()
. To create an open range use the maximum value.protected Comparator<? super Number> getComparator()
getComparator
in class Range<Number>
Comparator
used to compare
values of this
Range
. The default implementation assumes that the value type implements
Comparable
. If you want to use other value types you need to create a sub-class of
Range
and override this method.Copyright © 2001–2016 mmm-Team. All rights reserved.