public final class UInteger extends UNumber implements Comparable<UInteger>
unsigned int type| Modifier and Type | Field and Description | 
|---|---|
| static UInteger | MAXA constant holding the maximum value an  unsigned intcan
 have as UInteger, 232-1. | 
| static long | MAX_VALUEA constant holding the maximum value an  unsigned intcan
 have, 232-1. | 
| static UInteger | MINA constant holding the minimum value an  unsigned intcan
 have as UInteger, 0. | 
| static long | MIN_VALUEA constant holding the minimum value an  unsigned intcan
 have, 0. | 
| Modifier and Type | Method and Description | 
|---|---|
| UInteger | add(int val) | 
| UInteger | add(UInteger val) | 
| int | compareTo(UInteger o) | 
| double | doubleValue() | 
| boolean | equals(Object obj) | 
| float | floatValue() | 
| int | hashCode() | 
| UInteger | inclusiveOr(int val) | 
| UInteger | inclusiveOr(long val) | 
| UInteger | inclusiveOr(UInteger val) | 
| int | intValue() | 
| UInteger | leftShift(int shiftAmount) | 
| long | longValue() | 
| UInteger | rightShift(int shiftAmount) | 
| UInteger | subtract(int val) | 
| UInteger | subtract(UInteger val) | 
| BigInteger | toBigInteger()Get this number as a  BigInteger. | 
| String | toString() | 
| static UInteger | valueOf(int value)Create an  unsigned intby masking it with0xFFFFFFFFi.e. | 
| static UInteger | valueOf(long value)Create an  unsigned int | 
| static UInteger | valueOf(String value)Create an  unsigned int | 
| UInteger | xor(int val) | 
| UInteger | xor(long val) | 
| UInteger | xor(UInteger val) | 
byteValue, shortValuepublic static final long MIN_VALUE
unsigned int can
 have, 0.public static final long MAX_VALUE
unsigned int can
 have, 232-1.public static final UInteger MIN
unsigned int can
 have as UInteger, 0.public static final UInteger MAX
unsigned int can
 have as UInteger, 232-1.public static UInteger valueOf(String value) throws NumberFormatException
unsigned intNumberFormatException - If value does not contain a
                               parsable unsigned int.public static UInteger valueOf(int value)
unsigned int by masking it with
 0xFFFFFFFF i.e. (int) -1 becomes
 (uint) 4294967295public static UInteger valueOf(long value) throws NumberFormatException
unsigned intNumberFormatException - If value is not in the range
                               of an unsigned bytepublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic BigInteger toBigInteger()
UNumberBigInteger. This is a convenience method for
 calling new BigInteger(toString())toBigInteger in class UNumberpublic int compareTo(UInteger o)
compareTo in interface Comparable<UInteger>public UInteger add(int val)
public UInteger subtract(int val)
public UInteger leftShift(int shiftAmount)
public UInteger inclusiveOr(int val)
public UInteger inclusiveOr(long val)
public UInteger rightShift(int shiftAmount)
public UInteger xor(int val)
public UInteger xor(long val)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.