Package com.upokecenter.cbor
Enum Class CBORType
- All Implemented Interfaces:
Serializable,Comparable<CBORType>,Constable
Represents a type that a CBOR object can have.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn array of CBOR objects.The simple values true and false.An array of bytes.A 16-, 32-, or 64-bit binary floating-point number.An integer in the interval [-(2^64), 2^64 - 1], or an integer of major type 0 and 1.A map of CBOR objects.Deprecated.Since version 4.0, CBORObject.Type no longer returns this value for any CBOR Object - this is a breaking change from earlier versions.A "simple value" other than floating point values, true, and false.A text string. -
Method Summary
-
Enum Constant Details
-
Number
Deprecated.Since version 4.0, CBORObject.Type no longer returns this value for any CBOR Object - this is a breaking change from earlier versions. Instead, use the IsNumber property of CBORObject to determine whether a CBOR Object represents a number, or use the two new CBORType values instead. CBORType.Integer covers CBOR objects representing integers of major type 0 and 1. CBORType.FloatingPoint covers CBOR objects representing 16-, 32-, and 64-bit floating-point numbers. CBORType.Number may be removed in version 5.0 or later.This property is no longer used. -
Boolean
The simple values true and false. -
SimpleValue
A "simple value" other than floating point values, true, and false. -
ByteString
An array of bytes. -
TextString
A text string. -
Array
An array of CBOR objects. -
Map
A map of CBOR objects. -
Integer
An integer in the interval [-(2^64), 2^64 - 1], or an integer of major type 0 and 1. -
FloatingPoint
A 16-, 32-, or 64-bit binary floating-point number.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-