java.lang.Object
java.lang.Enum<ScalarClass>
org.wildfly.clustering.marshalling.protostream.ScalarClass
All Implemented Interfaces:
Serializable, Comparable<ScalarClass>, java.lang.constant.Constable, Marshallable<Class<?>>, Readable<Class<?>>, ScalarMarshaller<Class<?>>, Writable<Class<?>>

public enum ScalarClass extends Enum<ScalarClass> implements ScalarMarshaller<Class<?>>
Set of scalar marshallers for marshalling a Class.
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

      public static ScalarClass[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • getJavaClass

      public Class<? extends Class<?>> getJavaClass()
      Description copied from interface: Marshallable
      Returns the type of object handled by this marshallable instance.
      Specified by:
      getJavaClass in interface Marshallable<Class<?>>
      Returns:
      the type of object handled by this marshallable instance.
    • getWireType

      public org.infinispan.protostream.descriptors.WireType getWireType()
      Description copied from interface: ScalarMarshaller
      Returns the wire type of the scalar value written by this marshaller.
      Specified by:
      getWireType in interface ScalarMarshaller<Class<?>>
      Returns:
      the wire type of the scalar value written by this marshaller.