- All Implemented Interfaces:
Serializable,Comparable<Range.RangeSign>,Constable
- Enclosing interface:
Range
A categorization of ranges based on their relationship to 0. Every Range
falls into exactly one of these categories.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe range contains at least a negative number and a positive number (0 is optionally contained)The range is emptyThe range consists exactly of 0 and nothing else.The range contains 0 and a positive number and every element of the range is greater than or equal to 0.Every element of the range is greater than 0 and the range is non-empty.Every element of the range is less than or equal to 0 and the range contains 0 and a negative number.Every element of the range is less than 0 and the range is not empty. -
Method Summary
Modifier and TypeMethodDescriptionstatic Range.RangeSignReturns the enum constant of this class with the specified name.static Range.RangeSign[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LT0
Every element of the range is less than 0 and the range is not empty. -
LE0
Every element of the range is less than or equal to 0 and the range contains 0 and a negative number. -
EQ0
The range consists exactly of 0 and nothing else. -
GE0
The range contains 0 and a positive number and every element of the range is greater than or equal to 0. -
GT0
Every element of the range is greater than 0 and the range is non-empty. -
EMPTY
The range is empty -
ALL
The range contains at least a negative number and a positive number (0 is optionally contained)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-