public enum NumberRange extends Enum<NumberRange>
| Enum Constant and Description |
|---|
DECIMAL
Decimal.
|
INTEGER
Integer.
|
NOTHING
Nothing.
|
RATIONAL
Rational.
|
REAL
Real.
|
| Modifier and Type | Method and Description |
|---|---|
static NumberRange |
getMostSpecificRange(Number n) |
static NumberRange |
intersection(NumberRange it1,
NumberRange it2) |
boolean |
isDense() |
static boolean |
isSubsetOf(NumberRange subset,
NumberRange superset) |
static NumberRange |
union(NumberRange it1,
NumberRange it2) |
static NumberRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberRange NOTHING
public static final NumberRange INTEGER
public static final NumberRange DECIMAL
public static final NumberRange RATIONAL
public static final NumberRange REAL
public static NumberRange[] values()
for (NumberRange c : NumberRange.values()) System.out.println(c);
public static NumberRange valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isDense()
public static NumberRange intersection(NumberRange it1, NumberRange it2)
it1 - range 1it2 - range 2public static NumberRange union(NumberRange it1, NumberRange it2)
it1 - range 1it2 - range 2public static boolean isSubsetOf(NumberRange subset, NumberRange superset)
subset - subsetsuperset - supersetpublic static NumberRange getMostSpecificRange(Number n)
n - numberCopyright © 2020. All rights reserved.