Enum Jackson2JavaTypeMapper.TypePrecedence
- java.lang.Object
-
- java.lang.Enum<Jackson2JavaTypeMapper.TypePrecedence>
-
- org.springframework.amqp.support.converter.Jackson2JavaTypeMapper.TypePrecedence
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Jackson2JavaTypeMapper.TypePrecedence>
- Enclosing interface:
- Jackson2JavaTypeMapper
public static enum Jackson2JavaTypeMapper.TypePrecedence extends java.lang.Enum<Jackson2JavaTypeMapper.TypePrecedence>
The precedence for type conversion - inferred from the method parameter or message headers. Only applies if both exist.- Since:
- 1.6
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Jackson2JavaTypeMapper.TypePrecedence
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Jackson2JavaTypeMapper.TypePrecedence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFERRED
public static final Jackson2JavaTypeMapper.TypePrecedence INFERRED
-
TYPE_ID
public static final Jackson2JavaTypeMapper.TypePrecedence TYPE_ID
-
-
Method Detail
-
values
public static Jackson2JavaTypeMapper.TypePrecedence[] 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 (Jackson2JavaTypeMapper.TypePrecedence c : Jackson2JavaTypeMapper.TypePrecedence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Jackson2JavaTypeMapper.TypePrecedence 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
-
-