public class CBORSimpleValue extends Object
JsonToken.VALUE_NUMBER_INT
s.
Simple values left undefined in
CBOR 1.0
specification contain values [0 - 19], [32, 255]
: other
values are not used to represent general simple values.
Specifically, values below 0
, above 255
or
in range [20, 31] (inclusive)
are never exposed.
Values are not guaranteed to be canonicalized, but being immutable may be reused (and in future possible canonicalized if that makes sense).
Note that it is possible that some of above-mentioned values may be defined to have specific meaning and get reported using some other mechanism.
Modifier and Type | Field and Description |
---|---|
protected int |
_value
Actual numeric value represented.
|
Constructor and Description |
---|
CBORSimpleValue(int value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getValue()
Accessor for the simple integer value represented
|
int |
hashCode() |
String |
toString() |
Copyright © 2021 FasterXML. All rights reserved.