
co.nstant.in.cbor.model.NegativeInteger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cbor Show documentation
Show all versions of cbor Show documentation
Java implementation of RFC 7049: Concise Binary Object Representation (CBOR)
The newest version!
package co.nstant.in.cbor.model;
import java.math.BigInteger;
public class NegativeInteger extends Number {
public NegativeInteger(long value) {
this(BigInteger.valueOf(value));
assertTrue(value < 0L, "value " + value + " is not < 0");
}
public NegativeInteger(BigInteger value) {
super(MajorType.NEGATIVE_INTEGER, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy