java.lang.Object
java.lang.Enum<CAUVId>
com.io7m.cardant.protocol.inventory.cb.internal.CAUVId
All Implemented Interfaces:
CAProtocolMessageValidatorType<CAIdType,CAI1Id>, Serializable, Comparable<CAUVId>, Constable

public enum CAUVId extends Enum<CAUVId> implements CAProtocolMessageValidatorType<CAIdType,CAI1Id>
A validator.
  • Enum Constant Details

    • ID

      public static final CAUVId ID
      A validator.
  • Method Details

    • values

      public static CAUVId[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CAUVId valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • convertToWire

      public CAI1Id convertToWire(CAIdType message)
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a core message to a wire message.
      Specified by:
      convertToWire in interface CAProtocolMessageValidatorType<CAIdType,CAI1Id>
      Parameters:
      message - The core message
      Returns:
      The wire message
    • convertFromWire

      public CAIdType convertFromWire(CAI1Id message)
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a wire message to a core message.
      Specified by:
      convertFromWire in interface CAProtocolMessageValidatorType<CAIdType,CAI1Id>
      Parameters:
      message - The wire message
      Returns:
      The core message