Lines Matching defs:UnsignedInteger

42 public final class UnsignedInteger extends Number implements Comparable<UnsignedInteger> {
43 public static final UnsignedInteger ZERO = asUnsigned(0);
44 public static final UnsignedInteger ONE = asUnsigned(1);
45 public static final UnsignedInteger MAX_VALUE = asUnsigned(-1);
49 private UnsignedInteger(int value) {
54 * Returns an {@code UnsignedInteger} that, when treated as signed, is
57 public static UnsignedInteger asUnsigned(int value) {
58 return new UnsignedInteger(value);
62 * Returns an {@code UnsignedInteger} that is equal to {@code value},
65 public static UnsignedInteger valueOf(long value) {
72 * Returns a {@code UnsignedInteger} representing the same value as the specified
77 public static UnsignedInteger valueOf(BigInteger value) {
85 * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed
91 public static UnsignedInteger valueOf(String string) {
96 * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed
102 public static UnsignedInteger valueOf(String string, int radix) {
110 public UnsignedInteger add(UnsignedInteger val) {
119 public UnsignedInteger subtract(UnsignedInteger val) {
129 public UnsignedInteger multiply(UnsignedInteger val) {
137 public UnsignedInteger divide(UnsignedInteger val) {
145 public UnsignedInteger remainder(UnsignedInteger val) {
151 * Returns the value of this {@code UnsignedInteger} as an {@code int}. This is an inverse
154 * <p>Note that if this {@code UnsignedInteger} holds a value {@code >= 2^31}, the returned value
163 * Returns the value of this {@code UnsignedInteger} as a {@code long}.
171 * Returns the value of this {@code UnsignedInteger} as a {@code float}, analogous to a widening
180 * Returns the value of this {@code UnsignedInteger} as a {@code float}, analogous to a widening
189 * Returns the value of this {@code UnsignedInteger} as a {@link BigInteger}.
201 public int compareTo(UnsignedInteger other) {
213 if (obj instanceof UnsignedInteger) {
214 UnsignedInteger other = (UnsignedInteger) obj;
221 * Returns a string representation of the {@code UnsignedInteger} value, in base 10.
229 * Returns a string representation of the {@code UnsignedInteger} value, in base {@code radix}.