Package org.tomlj

Enum Class TomlType

All Implemented Interfaces:
Serializable, Comparable<TomlType>, Constable

enum TomlType extends Enum<TomlType>
  • Enum Constant Details

    • STRING

      public static final TomlType STRING
    • INTEGER

      public static final TomlType INTEGER
    • FLOAT

      public static final TomlType FLOAT
    • BOOLEAN

      public static final TomlType BOOLEAN
    • OFFSET_DATE_TIME

      public static final TomlType OFFSET_DATE_TIME
    • LOCAL_DATE_TIME

      public static final TomlType LOCAL_DATE_TIME
    • LOCAL_DATE

      public static final TomlType LOCAL_DATE
    • LOCAL_TIME

      public static final TomlType LOCAL_TIME
    • ARRAY

      public static final TomlType ARRAY
    • TABLE

      public static final TomlType TABLE
  • Field Details

    • name

      private final String name
    • clazz

      private final Class<?> clazz
  • Constructor Details

    • TomlType

      private TomlType(String name, Class<?> clazz)
  • Method Details

    • values

      public static TomlType[] 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 TomlType 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
    • typeFor

      static Optional<TomlType> typeFor(Object obj)
    • typeForClass

      static Optional<TomlType> typeForClass(Class<?> clazz)
    • typeNameFor

      static String typeNameFor(Object obj)
    • typeNameForClass

      static String typeNameForClass(Class<?> clazz)
    • typeName

      public String typeName()