Enum Class CBORTypes

java.lang.Object
java.lang.Enum<CBORTypes>
org.webpki.cbor.CBORTypes
All Implemented Interfaces:
Serializable, Comparable<CBORTypes>, Constable

public enum CBORTypes extends Enum<CBORTypes>
Enumeration of CBOR types. Note: the types supported by this implementation.
  • Enum Constant Details

    • ARRAY

      public static final CBORTypes ARRAY
    • MAP

      public static final CBORTypes MAP
    • INTEGER

      public static final CBORTypes INTEGER
    • BIGNUM

      public static final CBORTypes BIGNUM
    • TAG

      public static final CBORTypes TAG
    • FLOATING_POINT

      public static final CBORTypes FLOATING_POINT
    • BYTES

      public static final CBORTypes BYTES
    • STRING

      public static final CBORTypes STRING
    • BOOLEAN

      public static final CBORTypes BOOLEAN
    • NULL

      public static final CBORTypes NULL
  • Method Details

    • values

      public static CBORTypes[] 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 CBORTypes 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