Enum BasicTypesMessageProvider.PrimitiveTypes
- java.lang.Object
-
- java.lang.Enum<BasicTypesMessageProvider.PrimitiveTypes>
-
- org.glassfish.jersey.message.internal.BasicTypesMessageProvider.PrimitiveTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BasicTypesMessageProvider.PrimitiveTypes>
- Enclosing class:
- BasicTypesMessageProvider
private static enum BasicTypesMessageProvider.PrimitiveTypes extends java.lang.Enum<BasicTypesMessageProvider.PrimitiveTypes>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PrimitiveTypes(java.lang.Class<?> wrapper, java.lang.Class<?> primitive)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Object
convert(java.lang.String s)
static BasicTypesMessageProvider.PrimitiveTypes
forType(java.lang.Class<?> type)
boolean
supports(java.lang.Class<?> type)
static BasicTypesMessageProvider.PrimitiveTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BasicTypesMessageProvider.PrimitiveTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final BasicTypesMessageProvider.PrimitiveTypes BYTE
-
SHORT
public static final BasicTypesMessageProvider.PrimitiveTypes SHORT
-
INTEGER
public static final BasicTypesMessageProvider.PrimitiveTypes INTEGER
-
LONG
public static final BasicTypesMessageProvider.PrimitiveTypes LONG
-
FLOAT
public static final BasicTypesMessageProvider.PrimitiveTypes FLOAT
-
DOUBLE
public static final BasicTypesMessageProvider.PrimitiveTypes DOUBLE
-
BOOLEAN
public static final BasicTypesMessageProvider.PrimitiveTypes BOOLEAN
-
CHAR
public static final BasicTypesMessageProvider.PrimitiveTypes CHAR
-
-
Method Detail
-
values
public static BasicTypesMessageProvider.PrimitiveTypes[] 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 (BasicTypesMessageProvider.PrimitiveTypes c : BasicTypesMessageProvider.PrimitiveTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicTypesMessageProvider.PrimitiveTypes 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
-
forType
public static BasicTypesMessageProvider.PrimitiveTypes forType(java.lang.Class<?> type)
-
convert
public abstract java.lang.Object convert(java.lang.String s)
-
supports
public boolean supports(java.lang.Class<?> type)
-
-