Enum ScalarClass
- java.lang.Object
-
- java.lang.Enum<ScalarClass>
-
- org.wildfly.clustering.marshalling.protostream.ScalarClass
-
- All Implemented Interfaces:
Serializable,Comparable<ScalarClass>,Marshallable<Class<?>>,ScalarMarshaller<Class<?>>
public enum ScalarClass extends Enum<ScalarClass> implements ScalarMarshaller<Class<?>>
Set of scalar marshallers for marshalling aClass.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Class<?>>getJavaClass()Returns the type of object handled by this marshallable instance.org.infinispan.protostream.descriptors.WireTypegetWireType()Returns the wire type of the scalar value written by this marshaller.static ScalarClassvalueOf(String name)Returns the enum constant of this type with the specified name.static ScalarClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Marshallable
readFrom, writeTo
-
-
-
-
Enum Constant Detail
-
ANY
public static final ScalarClass ANY
-
ID
public static final ScalarClass ID
-
NAME
public static final ScalarClass NAME
-
FIELD
public static final ScalarClass FIELD
-
-
Method Detail
-
values
public static ScalarClass[] 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 (ScalarClass c : ScalarClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScalarClass 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
-
getJavaClass
public Class<? extends Class<?>> getJavaClass()
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceMarshallable<Class<?>>- Returns:
- the type of object handled by this marshallable instance.
-
getWireType
public org.infinispan.protostream.descriptors.WireType getWireType()
Description copied from interface:ScalarMarshallerReturns the wire type of the scalar value written by this marshaller.- Specified by:
getWireTypein interfaceScalarMarshaller<Class<?>>- Returns:
- the wire type of the scalar value written by this marshaller.
-
-