Enum Scalar
- java.lang.Object
-
- java.lang.Enum<Scalar>
-
- org.wildfly.clustering.marshalling.protostream.Scalar
-
- All Implemented Interfaces:
Serializable,Comparable<Scalar>,Marshallable<Object>,Readable<Object>,ScalarMarshaller<Object>,ScalarMarshallerProvider,Writable<Object>
public enum Scalar extends Enum<Scalar> implements ScalarMarshallerProvider
Enumeration of common scalar marshaller implementations.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarMarshaller<?>getMarshaller()static ScalarvalueOf(String name)Returns the enum constant of this type with the specified name.static Scalar[]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.ScalarMarshallerProvider
cast, getJavaClass, getWireType, readFrom, size, writeTo
-
-
-
-
Enum Constant Detail
-
ANY
public static final Scalar ANY
-
BOOLEAN
public static final Scalar BOOLEAN
-
BYTE
public static final Scalar BYTE
-
SHORT
public static final Scalar SHORT
-
INTEGER
public static final Scalar INTEGER
-
LONG
public static final Scalar LONG
-
FLOAT
public static final Scalar FLOAT
-
DOUBLE
public static final Scalar DOUBLE
-
CHARACTER
public static final Scalar CHARACTER
-
BYTE_BUFFER
public static final Scalar BYTE_BUFFER
-
BYTE_ARRAY
public static final Scalar BYTE_ARRAY
-
STRING
public static final Scalar STRING
-
REFERENCE
public static final Scalar REFERENCE
-
-
Method Detail
-
values
public static Scalar[] 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 (Scalar c : Scalar.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scalar 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
-
getMarshaller
public ScalarMarshaller<?> getMarshaller()
- Specified by:
getMarshallerin interfaceScalarMarshallerProvider
-
-