public abstract class UInt<Subclass extends UInt> extends Number implements SerializedType, Comparable<UInt>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UInt.UINTTranslator<T extends UInt> |
| 限定符和类型 | 字段和说明 |
|---|---|
static BigInteger |
Max16 |
static BigInteger |
Max32 |
static BigInteger |
Max64 |
static BigInteger |
Max8 |
| 构造器和说明 |
|---|
UInt() |
UInt(BigInteger bi)
Uint.
|
UInt(byte[] bytes) |
UInt(Number s)
Set uint from number.
|
UInt(String s)
Set Uint from String.
|
UInt(String s,
int radix)
Set Uint from String and int.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Subclass |
add(UInt val)
Add value.
|
BigInteger |
bigInteger()
return BigInter value.
|
int |
bitLength()
bitLength.
|
byte |
byteValue() |
int |
compareTo(UInt val)
Compare to.
|
Subclass |
divide(UInt val)
Divide.
|
double |
doubleValue() |
boolean |
equals(Object obj) |
boolean |
equals(UInt x)
Equeals.
|
float |
floatValue() |
abstract int |
getByteWidth() |
BigInteger |
getMinimumValue()
getMinimumValue
|
abstract Subclass |
instanceFrom(BigInteger n) |
int |
intValue() |
boolean |
isValid(BigInteger n)
isValid.
|
boolean |
isZero()
isZero.
|
long |
longValue() |
<T extends UInt> |
lte(T sequence)
lte
|
BigInteger |
max(BigInteger val)
Max.
|
BigInteger |
min(BigInteger val)
Min.
|
Subclass |
multiply(UInt val)
Multiply.
|
Subclass |
or(UInt val)
Or operation.
|
void |
setValue(BigInteger value)
Set BigInteger value.
|
Subclass |
shiftLeft(int n)
shiftLeft operation.
|
Subclass |
shiftRight(int n)
Shift Right operation.
|
short |
shortValue() |
Subclass |
subtract(UInt val)
Substract.
|
boolean |
testBit(int f)
Test Bit.
|
byte[] |
toByteArray()
To byte array.
|
String |
toString() |
String |
toString(int radix)
toString.
|
abstract Object |
value() |
toBytes, toBytesSink, toHex, toJSON, typepublic static BigInteger Max8
public static BigInteger Max16
public static BigInteger Max32
public static BigInteger Max64
public UInt(byte[] bytes)
bytes - bytes.public UInt(BigInteger bi)
bi - bi.public UInt(Number s)
s - s.public UInt(String s)
s - s.public UInt(String s, int radix)
s - String value.radix - radix.public UInt()
public BigInteger getMinimumValue()
public abstract int getByteWidth()
public abstract Subclass instanceFrom(BigInteger n)
public boolean isValid(BigInteger n)
n - BigInteger.public Subclass shiftLeft(int n)
n - value.public Subclass shiftRight(int n)
n - n.public int bitLength()
public int compareTo(UInt val)
compareTo 在接口中 Comparable<UInt>val - value.public boolean equals(UInt x)
x - x.public BigInteger min(BigInteger val)
val - value.public BigInteger max(BigInteger val)
val - BigInteger value.public String toString(int radix)
radix - radix.public byte[] toByteArray()
public abstract Object value()
public BigInteger bigInteger()
public double doubleValue()
doubleValue 在类中 Numberpublic float floatValue()
floatValue 在类中 Numberpublic short shortValue()
shortValue 在类中 Numberpublic void setValue(BigInteger value)
value - value.public <T extends UInt> boolean lte(T sequence)
T - int type.sequence - Sequence.public boolean testBit(int f)
f - int value.public boolean isZero()
Copyright © 2021. All rights reserved.