Enum Class CAUVItem

java.lang.Object
java.lang.Enum<CAUVItem>
com.io7m.cardant.protocol.inventory.cb.internal.CAUVItem
All Implemented Interfaces:
CAProtocolMessageValidatorType<CAItem,CAI1Item>, Serializable, Comparable<CAUVItem>, Constable

public enum CAUVItem extends Enum<CAUVItem> implements CAProtocolMessageValidatorType<CAItem,CAI1Item>
A validator.
  • Enum Constant Details

    • ITEM

      public static final CAUVItem ITEM
      A validator.
  • Method Details

    • values

      public static CAUVItem[] 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 CAUVItem 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 CAI1Item convertToWire(CAItem item)
      Description copied from interface: CAProtocolMessageValidatorType
      Convert a core message to a wire message.
      Specified by:
      convertToWire in interface CAProtocolMessageValidatorType<CAItem,CAI1Item>
      Parameters:
      item - The core message
      Returns:
      The wire message
    • convertFromWire

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