public enum NumberRange extends Enum<NumberRange>
| Enum Constant and Description |
|---|
DECIMAL |
INTEGER |
NOTHING |
RATIONAL |
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)
public static NumberRange union(NumberRange it1, NumberRange it2)
public static boolean isSubsetOf(NumberRange subset, NumberRange superset)
public static NumberRange getMostSpecificRange(Number n)
Copyright © 2020. All rights reserved.