Enum CliTypeTable

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

    public enum CliTypeTable
    extends java.lang.Enum<CliTypeTable>
    Possible Metadata table types.
    • Method Detail

      • values

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

        public static CliTypeTable 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
      • id

        public int id()
        Gets the ID associated with this table type.
        Returns:
        The ID associated with this table type.
      • fromId

        public static CliTypeTable fromId​(int id)
        Gets a table type from the given ID.
        Parameters:
        id - The ID of the table type to get.
        Returns:
        A table type with the given ID, or null if one doesn't exist.