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(byte[] bytes) |
UInt(Number s) |
UInt(String s) |
UInt(String s,
int radix) |
| 限定符和类型 | 方法和说明 |
|---|---|
Subclass |
add(UInt val) |
BigInteger |
bigInteger() |
int |
bitLength() |
byte |
byteValue() |
int |
compareTo(UInt val) |
Subclass |
divide(UInt val) |
double |
doubleValue() |
boolean |
equals(Object obj) |
boolean |
equals(UInt x) |
float |
floatValue() |
abstract int |
getByteWidth() |
BigInteger |
getMinimumValue() |
abstract Subclass |
instanceFrom(BigInteger n) |
int |
intValue() |
boolean |
isValid(BigInteger n) |
boolean |
isZero() |
long |
longValue() |
<T extends UInt> |
lte(T sequence) |
BigInteger |
max(BigInteger val) |
BigInteger |
min(BigInteger val) |
Subclass |
multiply(UInt val) |
Subclass |
or(UInt val) |
void |
setValue(BigInteger value) |
Subclass |
shiftLeft(int n) |
Subclass |
shiftRight(int n) |
short |
shortValue() |
Subclass |
subtract(UInt val) |
boolean |
testBit(int f) |
byte[] |
toByteArray() |
String |
toString() |
String |
toString(int radix) |
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)
public UInt(BigInteger bi)
public UInt(Number s)
public UInt(String s)
public UInt(String s, int radix)
public UInt()
public BigInteger getMinimumValue()
public abstract int getByteWidth()
public abstract Subclass instanceFrom(BigInteger n)
public boolean isValid(BigInteger n)
public Subclass shiftLeft(int n)
public Subclass shiftRight(int n)
public int bitLength()
public int compareTo(UInt val)
compareTo 在接口中 Comparable<UInt>public boolean equals(UInt x)
public BigInteger min(BigInteger val)
public BigInteger max(BigInteger val)
public String toString(int 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)
public <T extends UInt> boolean lte(T sequence)
public boolean testBit(int f)
public boolean isZero()
Copyright © 2021. All rights reserved.