Uses of Class
com.google.common.primitives.UnsignedInteger
Package
Description
Static utilities for the eight primitive types and
void
, and value types for treating
them as unsigned or storing them in immutable arrays.-
Uses of UnsignedInteger in com.google.common.primitives
Modifier and TypeClassDescriptionfinal class
A wrapper class for unsignedint
values, supporting arithmetic operations.Modifier and TypeFieldDescriptionstatic final UnsignedInteger
UnsignedInteger.MAX_VALUE
static final UnsignedInteger
UnsignedInteger.ONE
static final UnsignedInteger
UnsignedInteger.ZERO
Modifier and TypeMethodDescriptionUnsignedInteger.dividedBy
(UnsignedInteger val) Returns the result of dividing this byval
.static UnsignedInteger
UnsignedInteger.fromIntBits
(int bits) Returns anUnsignedInteger
corresponding to a given bit representation.UnsignedInteger.minus
(UnsignedInteger val) Returns the result of subtracting this andval
.UnsignedInteger.mod
(UnsignedInteger val) Returns this modval
.UnsignedInteger.plus
(UnsignedInteger val) Returns the result of adding this andval
.UnsignedInteger.times
(UnsignedInteger val) Returns the result of multiplying this andval
.static UnsignedInteger
UnsignedInteger.valueOf
(long value) Returns anUnsignedInteger
that is equal tovalue
, if possible.static UnsignedInteger
Returns anUnsignedInteger
holding the value of the specifiedString
, parsed as an unsignedint
value.static UnsignedInteger
Returns anUnsignedInteger
holding the value of the specifiedString
, parsed as an unsignedint
value in the specified radix.static UnsignedInteger
UnsignedInteger.valueOf
(BigInteger value) Returns aUnsignedInteger
representing the same value as the specifiedBigInteger
.Modifier and TypeMethodDescriptionint
UnsignedInteger.compareTo
(UnsignedInteger other) Compares this unsigned integer to another unsigned integer.UnsignedInteger.dividedBy
(UnsignedInteger val) Returns the result of dividing this byval
.UnsignedInteger.minus
(UnsignedInteger val) Returns the result of subtracting this andval
.UnsignedInteger.mod
(UnsignedInteger val) Returns this modval
.UnsignedInteger.plus
(UnsignedInteger val) Returns the result of adding this andval
.UnsignedInteger.times
(UnsignedInteger val) Returns the result of multiplying this andval
.