All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.nstant.in.cbor.model.NegativeInteger Maven / Gradle / Ivy

Go to download

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