Enum Type.Primitive
- java.lang.Object
-
- java.lang.Enum<Type.Primitive>
-
- org.immutables.value.processor.encode.Type.Primitive
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Type.Primitive>,Type
- Enclosing interface:
- Type
public static enum Type.Primitive extends java.lang.Enum<Type.Primitive> implements Type
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.immutables.value.processor.encode.Type
Type.Array, Type.Defined, Type.Factory, Type.Nonprimitive, Type.Parameterized, Type.Parameters, Type.Parser, Type.Primitive, Type.Print, Type.Producer, Type.Reference, Type.Template, Type.Transformer, Type.Variable, Type.VariableResolver, Type.Visitor<V>, Type.Wildcard
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringdefaultValuejava.lang.StringtypenameType.Referencewrapper
-
Constructor Summary
Constructors Modifier Constructor Description privatePrimitive(Type.Reference wrapper, java.lang.String defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Vaccept(Type.Visitor<V> visitor)static Type.NonprimitiveasNonprimitive(Type type)java.lang.StringtoString()static Type.PrimitivevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Type.Primitive[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final Type.Primitive BOOLEAN
-
BYTE
public static final Type.Primitive BYTE
-
SHORT
public static final Type.Primitive SHORT
-
INT
public static final Type.Primitive INT
-
LONG
public static final Type.Primitive LONG
-
CHAR
public static final Type.Primitive CHAR
-
FLOAT
public static final Type.Primitive FLOAT
-
DOUBLE
public static final Type.Primitive DOUBLE
-
VOID
public static final Type.Primitive VOID
-
-
Field Detail
-
typename
public final java.lang.String typename
-
wrapper
public final Type.Reference wrapper
-
defaultValue
public final java.lang.String defaultValue
-
-
Constructor Detail
-
Primitive
private Primitive(Type.Reference wrapper, java.lang.String defaultValue)
-
-
Method Detail
-
values
public static Type.Primitive[] 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 (Type.Primitive c : Type.Primitive.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Type.Primitive 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 namejava.lang.NullPointerException- if the argument is null
-
accept
public <V> V accept(Type.Visitor<V> visitor)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Type.Primitive>
-
asNonprimitive
public static Type.Nonprimitive asNonprimitive(Type type)
-
-