Class XdrEnumerated<T extends EnumType>

All Implemented Interfaces:
XdrType

public abstract class XdrEnumerated<T extends EnumType> extends XdrSimple<T>
  • Constructor Details

    • XdrEnumerated

      public XdrEnumerated()
      Default constructor, generally for decoding as a container
    • XdrEnumerated

      public XdrEnumerated(T value)
      Constructor with a value, generally for encoding of the value
      Parameters:
      value - The Enum value
  • Method Details

    • toBytes

      protected void toBytes()
      Description copied from class: XdrSimple
      Encode simple type to bytes.
      Specified by:
      toBytes in class XdrSimple<T extends EnumType>
    • toValue

      protected void toValue()
      Description copied from class: XdrSimple
      Decode bytes to simple value.
      Specified by:
      toValue in class XdrSimple<T extends EnumType>
    • getAllEnumValues

      protected abstract EnumType[] getAllEnumValues()