Enum Class Node.NonNumericFloat
- All Implemented Interfaces:
Serializable
,Comparable<Node.NonNumericFloat>
,Constable
- Enclosing class:
- Node
Non-numeric values for floats and doubles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<Node.NonNumericFloat>
fromStringRepresentation
(String value) Convert a string value into a NonNumericFloat.static Node.NonNumericFloat
Returns the enum constant of this class with the specified name.static Node.NonNumericFloat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAN
-
POSITIVE_INFINITY
-
NEGATIVE_INFINITY
-
-
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
-
getStringRepresentation
- Returns:
- The string representation of this non-numeric float.
-
stringRepresentations
- Returns:
- All the possible string representations of non-numeric floats.
-
fromStringRepresentation
Convert a string value into a NonNumericFloat.- Parameters:
value
- A string representation of a non-numeric float value.- Returns:
- A NonNumericFloat that represents the given string value or empty if there is no associated value.
-