Enum AnyField
- java.lang.Object
-
- java.lang.Enum<AnyField>
-
- org.wildfly.clustering.marshalling.protostream.AnyField
-
- All Implemented Interfaces:
Serializable,Comparable<AnyField>,Field<Object>
public enum AnyField extends Enum<AnyField> implements Field<Object>
A set of fields used byAnyMarshaller.- Author:
- Paul Ferraro
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYANY_ARRAYBOOLEANBOOLEAN_ARRAYBYTEBYTE_ARRAYCHAR_ARRAYCHARACTERDOUBLEDOUBLE_ARRAYFIELD_ARRAYFLOATFLOAT_ARRAYIDENTIFIED_ARRAYIDENTIFIED_ENUMIDENTIFIED_OBJECTINTEGERINTEGER_ARRAYLONGLONG_ARRAYNAMED_ARRAYNAMED_ENUMNAMED_OBJECTPROXYREFERENCESHORTSHORT_ARRAYSTRING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the index of this field.FieldMarshaller<Object>getMarshaller()Returns the marshaller for this field.static AnyFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static AnyField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final AnyField ANY
-
REFERENCE
public static final AnyField REFERENCE
-
BOOLEAN
public static final AnyField BOOLEAN
-
BYTE
public static final AnyField BYTE
-
SHORT
public static final AnyField SHORT
-
INTEGER
public static final AnyField INTEGER
-
LONG
public static final AnyField LONG
-
FLOAT
public static final AnyField FLOAT
-
DOUBLE
public static final AnyField DOUBLE
-
CHARACTER
public static final AnyField CHARACTER
-
STRING
public static final AnyField STRING
-
IDENTIFIED_OBJECT
public static final AnyField IDENTIFIED_OBJECT
-
IDENTIFIED_ENUM
public static final AnyField IDENTIFIED_ENUM
-
IDENTIFIED_ARRAY
public static final AnyField IDENTIFIED_ARRAY
-
FIELD_ARRAY
public static final AnyField FIELD_ARRAY
-
NAMED_OBJECT
public static final AnyField NAMED_OBJECT
-
NAMED_ENUM
public static final AnyField NAMED_ENUM
-
NAMED_ARRAY
public static final AnyField NAMED_ARRAY
-
BOOLEAN_ARRAY
public static final AnyField BOOLEAN_ARRAY
-
BYTE_ARRAY
public static final AnyField BYTE_ARRAY
-
SHORT_ARRAY
public static final AnyField SHORT_ARRAY
-
INTEGER_ARRAY
public static final AnyField INTEGER_ARRAY
-
LONG_ARRAY
public static final AnyField LONG_ARRAY
-
FLOAT_ARRAY
public static final AnyField FLOAT_ARRAY
-
DOUBLE_ARRAY
public static final AnyField DOUBLE_ARRAY
-
CHAR_ARRAY
public static final AnyField CHAR_ARRAY
-
ANY_ARRAY
public static final AnyField ANY_ARRAY
-
PROXY
public static final AnyField PROXY
-
-
Method Detail
-
values
public static AnyField[] 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 (AnyField c : AnyField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnyField 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 nameNullPointerException- if the argument is null
-
getIndex
public int getIndex()
Description copied from interface:FieldReturns the index of this field.
-
getMarshaller
public FieldMarshaller<Object> getMarshaller()
Description copied from interface:FieldReturns the marshaller for this field.- Specified by:
getMarshallerin interfaceField<Object>- Returns:
- the marshaller for this field.
-
-