Enum SMFComponentType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SMFComponentType>

    public enum SMFComponentType
    extends java.lang.Enum<SMFComponentType>
    The kind of components.
    • Enum Constant Detail

      • ELEMENT_TYPE_INTEGER_SIGNED

        public static final SMFComponentType ELEMENT_TYPE_INTEGER_SIGNED
        Signed integer values.
      • ELEMENT_TYPE_INTEGER_UNSIGNED

        public static final SMFComponentType ELEMENT_TYPE_INTEGER_UNSIGNED
        Unsigned integer values.
      • ELEMENT_TYPE_FLOATING

        public static final SMFComponentType ELEMENT_TYPE_FLOATING
        Floating point values.
    • Method Detail

      • values

        public static SMFComponentType[] 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 (SMFComponentType c : SMFComponentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SMFComponentType 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
      • of

        public static SMFComponentType of​(java.lang.String name)
        Return a component type for the given name.
        Parameters:
        name - The name
        Returns:
        A component type
        Throws:
        java.lang.IllegalArgumentException - If the name does not refer to a recognized type
      • getName

        public java.lang.String getName()
        Returns:
        The unique name of the type
      • toInteger

        public int toInteger()
        Returns:
        An integer value for the current component type