Enum Node.NonNumericFloat
- java.lang.Object
-
- java.lang.Enum<Node.NonNumericFloat>
-
- software.amazon.smithy.model.node.Node.NonNumericFloat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Node.NonNumericFloat>
- Enclosing class:
- Node
public static enum Node.NonNumericFloat extends java.lang.Enum<Node.NonNumericFloat>
Non-numeric values for floats and doubles.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NAN
NEGATIVE_INFINITY
POSITIVE_INFINITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<Node.NonNumericFloat>
fromStringRepresentation(java.lang.String value)
Convert a string value into a NonNumericFloat.java.lang.String
getStringRepresentation()
static java.util.Set<java.lang.String>
stringRepresentations()
static Node.NonNumericFloat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Node.NonNumericFloat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAN
public static final Node.NonNumericFloat NAN
-
POSITIVE_INFINITY
public static final Node.NonNumericFloat POSITIVE_INFINITY
-
NEGATIVE_INFINITY
public static final Node.NonNumericFloat NEGATIVE_INFINITY
-
-
Method Detail
-
values
public static Node.NonNumericFloat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Node.NonNumericFloat c : Node.NonNumericFloat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Node.NonNumericFloat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getStringRepresentation
public java.lang.String getStringRepresentation()
- Returns:
- The string representation of this non-numeric float.
-
stringRepresentations
public static java.util.Set<java.lang.String> stringRepresentations()
- Returns:
- All the possible string representations of non-numeric floats.
-
fromStringRepresentation
public static java.util.Optional<Node.NonNumericFloat> fromStringRepresentation(java.lang.String value)
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.
-
-