Enum 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.
    • 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 name
        java.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.