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
  • Enum Constant Details

    • 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 Details

    • values

      public static Scalar[] 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 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 name
      NullPointerException - if the argument is null
    • getMarshaller

      public ScalarMarshaller<?> getMarshaller()
      Specified by:
      getMarshaller in interface ScalarMarshallerProvider