public static enum Interval.Type extends Enum<Interval.Type>
| Enum Constant and Description |
|---|
CLOSED
A closed interval includes its end points, and is denoted with
square brackets.
|
LEFT_CLOSED_RIGHT_OPEN
Left closed right open
|
LEFT_CLOSED_RIGHT_UNBOUNDED
Left closed right unbounded
|
LEFT_OPEN_RIGHT_CLOSED
Left open right closed.
|
LEFT_OPEN_RIGHT_UNBOUNDED
Left open right unbounded
|
LEFT_UNBOUNDED_RIGHT_CLOSED
Left unbounded right closed
|
LEFT_UNBOUNDED_RIGHT_OPEN
Left unbounded right open
|
OPEN
An open interval does not include its end points, and is indicated
with parentheses.
|
UNBOUNDED
An interval is said to be left-bounded or right-bounded if there is
some real number that is, respectively, smaller than or larger than
all its elements.
|
| Modifier and Type | Method and Description |
|---|---|
static Interval.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Interval.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interval.Type OPEN
(0,1) means greater than
0 and less than 1.public static final Interval.Type CLOSED
[0,1] means greater than or
equal to 0 and less than or equal to 1.public static final Interval.Type UNBOUNDED
public static final Interval.Type LEFT_CLOSED_RIGHT_OPEN
public static final Interval.Type LEFT_OPEN_RIGHT_CLOSED
public static final Interval.Type LEFT_OPEN_RIGHT_UNBOUNDED
public static final Interval.Type LEFT_CLOSED_RIGHT_UNBOUNDED
public static final Interval.Type LEFT_UNBOUNDED_RIGHT_OPEN
public static final Interval.Type LEFT_UNBOUNDED_RIGHT_CLOSED
public static Interval.Type[] values()
for (Interval.Type c : Interval.Type.values()) System.out.println(c);
public static Interval.Type 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 nullCopyright © 2014. All Rights Reserved.