static <N extends Number & Comparable<? super N>> NumberRange<N> |
NumberRange.castOrCopy(Range<N> range) |
Returns the specified Range as a NumberRange object.
|
<N extends Number & Comparable<? super N>> NumberRange<N> |
NumberRange.castTo(Class<N> type) |
Casts this range to the specified type.
|
static NumberRange<Byte> |
NumberRange.create(byte minValue,
boolean isMinIncluded,
byte maxValue,
boolean isMaxIncluded) |
Constructs a range of byte values.
|
static NumberRange<Double> |
NumberRange.create(double minValue,
boolean isMinIncluded,
double maxValue,
boolean isMaxIncluded) |
Constructs a range of double values.
|
static NumberRange<Float> |
NumberRange.create(float minValue,
boolean isMinIncluded,
float maxValue,
boolean isMaxIncluded) |
Constructs a range of float values.
|
static NumberRange<Integer> |
NumberRange.create(int minValue,
boolean isMinIncluded,
int maxValue,
boolean isMaxIncluded) |
Constructs a range of int values.
|
static NumberRange<Long> |
NumberRange.create(long minValue,
boolean isMinIncluded,
long maxValue,
boolean isMaxIncluded) |
Constructs a range of long values.
|
static NumberRange<Short> |
NumberRange.create(short minValue,
boolean isMinIncluded,
short maxValue,
boolean isMaxIncluded) |
Constructs a range of short values.
|
static <N extends Number & Comparable<? super N>> NumberRange<N> |
NumberRange.create(Class<N> type,
N value) |
Constructs a range containing a single value of the given type.
|
static NumberRange<?> |
NumberRange.createBestFit(Number minValue,
boolean isMinIncluded,
Number maxValue,
boolean isMaxIncluded) |
Constructs a range using the smallest type of Number that can hold the given values.
|
static NumberRange<Integer> |
NumberRange.createLeftBounded(int minValue,
boolean isMinIncluded) |
Constructs a range of int values without upper bound.
|
NumberRange<?> |
NumberRange.intersectAny(NumberRange<?> range) |
Returns the union of this range with the given range.
|
NumberRange<?>[] |
NumberRange.subtractAny(NumberRange<?> range) |
Returns the range of values that are in this range but not in the given range.
|
NumberRange<?> |
NumberRange.unionAny(NumberRange<?> range) |
Returns the union of this range with the given range.
|