Enum Type.Primitive

java.lang.Object
java.lang.Enum<Type.Primitive>
org.immutables.value.processor.encode.Type.Primitive
All Implemented Interfaces:
Serializable, Comparable<Type.Primitive>, java.lang.constant.Constable, Type
Enclosing interface:
Type

public static enum Type.Primitive extends Enum<Type.Primitive> implements Type
  • Enum Constant Details

  • Field Details

    • typename

      public final String typename
    • wrapper

      public final Type.Reference wrapper
    • defaultValue

      public final String defaultValue
  • Constructor Details

  • Method Details

    • values

      public static Type.Primitive[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Type.Primitive valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • accept

      public <V> V accept(Type.Visitor<V> visitor)
      Specified by:
      accept in interface Type
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Type.Primitive>
    • asNonprimitive

      public static Type.Nonprimitive asNonprimitive(Type type)