Enum Class Node.NonNumericFloat

java.lang.Object
java.lang.Enum<Node.NonNumericFloat>
software.amazon.smithy.model.node.Node.NonNumericFloat
All Implemented Interfaces:
Serializable, Comparable<Node.NonNumericFloat>, Constable
Enclosing class:
Node

public static enum Node.NonNumericFloat extends Enum<Node.NonNumericFloat>
Non-numeric values for floats and doubles.
  • Enum Constant Details

  • Method Details

    • values

      public static Node.NonNumericFloat[] 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

      public static Node.NonNumericFloat valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getStringRepresentation

      public String getStringRepresentation()
      Returns:
      The string representation of this non-numeric float.
    • stringRepresentations

      public static Set<String> stringRepresentations()
      Returns:
      All the possible string representations of non-numeric floats.
    • fromStringRepresentation

      public static Optional<Node.NonNumericFloat> fromStringRepresentation(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.