Package | Description |
---|---|
com.google.common.primitives |
Static utilities for working with the eight primitive types and
void ,
and value types for treating them as unsigned. |
Modifier and Type | Field and Description |
---|---|
static UnsignedInteger |
UnsignedInteger.MAX_VALUE |
static UnsignedInteger |
UnsignedInteger.ONE |
static UnsignedInteger |
UnsignedInteger.ZERO |
Modifier and Type | Method and Description |
---|---|
UnsignedInteger |
UnsignedInteger.add(UnsignedInteger val)
Returns the result of adding this and
val . |
static UnsignedInteger |
UnsignedInteger.asUnsigned(int value)
Returns an
UnsignedInteger that, when treated as signed, is
equal to value . |
UnsignedInteger |
UnsignedInteger.divide(UnsignedInteger val)
Returns the result of dividing this by
val . |
UnsignedInteger |
UnsignedInteger.multiply(UnsignedInteger val)
Returns the result of multiplying this and
val . |
UnsignedInteger |
UnsignedInteger.remainder(UnsignedInteger val)
Returns the remainder of dividing this by
val . |
UnsignedInteger |
UnsignedInteger.subtract(UnsignedInteger val)
Returns the result of subtracting this and
val . |
static UnsignedInteger |
UnsignedInteger.valueOf(BigInteger value)
Returns a
UnsignedInteger representing the same value as the specified
BigInteger . |
static UnsignedInteger |
UnsignedInteger.valueOf(long value)
Returns an
UnsignedInteger that is equal to value ,
if possible. |
static UnsignedInteger |
UnsignedInteger.valueOf(String string)
Returns an
UnsignedInteger holding the value of the specified String , parsed
as an unsigned int value. |
static UnsignedInteger |
UnsignedInteger.valueOf(String string,
int radix)
Returns an
UnsignedInteger holding the value of the specified String , parsed
as an unsigned int value in the specified radix. |
Modifier and Type | Method and Description |
---|---|
UnsignedInteger |
UnsignedInteger.add(UnsignedInteger val)
Returns the result of adding this and
val . |
int |
UnsignedInteger.compareTo(UnsignedInteger other)
Compares this unsigned integer to another unsigned integer.
|
UnsignedInteger |
UnsignedInteger.divide(UnsignedInteger val)
Returns the result of dividing this by
val . |
UnsignedInteger |
UnsignedInteger.multiply(UnsignedInteger val)
Returns the result of multiplying this and
val . |
UnsignedInteger |
UnsignedInteger.remainder(UnsignedInteger val)
Returns the remainder of dividing this by
val . |
UnsignedInteger |
UnsignedInteger.subtract(UnsignedInteger val)
Returns the result of subtracting this and
val . |
Copyright © 2010-2013. All Rights Reserved.