Package com.jsoniter.spi
Enum TypeLiteral.NativeType
- java.lang.Object
-
- java.lang.Enum<TypeLiteral.NativeType>
-
- com.jsoniter.spi.TypeLiteral.NativeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeLiteral.NativeType>
- Enclosing class:
- TypeLiteral<T>
public static enum TypeLiteral.NativeType extends java.lang.Enum<TypeLiteral.NativeType>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NativeType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeLiteral.NativeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeLiteral.NativeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOAT
public static final TypeLiteral.NativeType FLOAT
-
DOUBLE
public static final TypeLiteral.NativeType DOUBLE
-
BOOLEAN
public static final TypeLiteral.NativeType BOOLEAN
-
BYTE
public static final TypeLiteral.NativeType BYTE
-
SHORT
public static final TypeLiteral.NativeType SHORT
-
INT
public static final TypeLiteral.NativeType INT
-
CHAR
public static final TypeLiteral.NativeType CHAR
-
LONG
public static final TypeLiteral.NativeType LONG
-
BIG_DECIMAL
public static final TypeLiteral.NativeType BIG_DECIMAL
-
BIG_INTEGER
public static final TypeLiteral.NativeType BIG_INTEGER
-
STRING
public static final TypeLiteral.NativeType STRING
-
OBJECT
public static final TypeLiteral.NativeType OBJECT
-
ANY
public static final TypeLiteral.NativeType ANY
-
-
Method Detail
-
values
public static TypeLiteral.NativeType[] 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 (TypeLiteral.NativeType c : TypeLiteral.NativeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeLiteral.NativeType 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
-
-