1516171819202122
super(decoder, inputStream); } @Override public NegativeInteger decode(int initialByte) throws CborException { return new NegativeInteger( MINUS_ONE.subtract(getLengthAsBigInteger(initialByte))); }
3536373839404142
protected DataItem convert(long value) { if (value >= 0) { return new UnsignedInteger(value); } else { return new NegativeInteger(value); } }
41424344454647484950
} } protected DataItem convert(BigInteger value) { if (value.signum() == -1) { return new NegativeInteger(value); } else { return new UnsignedInteger(value); } }
15161718192021
super(decoder, inputStream); } @Override public NegativeInteger decode(int initialByte) throws CborException { return new NegativeInteger(MINUS_ONE.subtract(getLengthAsBigInteger(initialByte))); }