Package org.webpki.cbor
Class CBORBigInt
java.lang.Object
org.webpki.cbor.CBORObject
org.webpki.cbor.CBORBigInt
- All Implemented Interfaces:
Cloneable,Comparable<CBORObject>
Class for holding CBOR integer objects.
Note that the encoder is adaptive, selecting the proper CBOR representation in order to produce a fully deterministic result.
See alsoCBORInt.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.webpki.cbor.CBORObject
checkForUnread, clone, compareTo, encode, equals, getArray, getBigInteger, getBoolean, getBytes, getDateTime, getEpochTime, getExtendedFloat64, getFloat16, getFloat32, getFloat64, getInt16, getInt32, getInt64, getInt8, getMap, getSimple, getString, getTag, getUint16, getUint32, getUint64, getUint8, hashCode, isNull, scan, toDiagnosticNotation, toString
-
Constructor Details
-
CBORBigInt
Creates a CBOR integer value of any size.Also see
CBORInt(long)andCBORObject.getBigInteger().Note: if
valueis within the CBORintrange,intencoding will be used, otherwisevaluewill be encoded as a CBORbigint.- Parameters:
value- Integer in BigInteger format
-