java.lang.Object
java.lang.Enum<ClassField>
org.wildfly.clustering.marshalling.protostream.ClassField
All Implemented Interfaces:
Serializable, Comparable<ClassField>, Field<Class<?>>

public enum ClassField extends Enum<ClassField> implements Field<Class<?>>
Various strategies for marshalling a Class.
Author:
Paul Ferraro
  • Enum Constant Details

  • Method Details

    • values

      public static ClassField[] 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 ClassField 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
    • getIndex

      public int getIndex()
      Description copied from interface: Field
      Returns the index of this field.
      Specified by:
      getIndex in interface Field<Class<?>>
      Returns:
      the index of this field.
    • getMarshaller

      public FieldMarshaller<Class<?>> getMarshaller()
      Description copied from interface: Field
      Returns the marshaller for this field.
      Specified by:
      getMarshaller in interface Field<Class<?>>
      Returns:
      the marshaller for this field.