Package org.fisco.bcos.sdk.abi.datatypes
Class Uint
java.lang.Object
org.fisco.bcos.sdk.abi.datatypes.NumericType
org.fisco.bcos.sdk.abi.datatypes.IntType
org.fisco.bcos.sdk.abi.datatypes.Uint
- All Implemented Interfaces:
Type<java.math.BigInteger>
- Direct Known Subclasses:
Uint104,Uint112,Uint120,Uint128,Uint136,Uint144,Uint152,Uint16,Uint160,Uint168,Uint176,Uint184,Uint192,Uint200,Uint208,Uint216,Uint224,Uint232,Uint24,Uint240,Uint248,Uint256,Uint32,Uint40,Uint48,Uint56,Uint64,Uint72,Uint8,Uint80,Uint88,Uint96
public class Uint extends IntType
Unsigned integer type.
-
Field Summary
Fields inherited from interface org.fisco.bcos.sdk.abi.datatypes.Type
MAX_BIT_LENGTH, MAX_BYTE_LENGTH -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleandynamicType()intoffset()booleanvalidUint(java.math.BigInteger value)check if value between 0 ~ MAX_UINT256Methods inherited from class org.fisco.bcos.sdk.abi.datatypes.NumericType
equals, getTypeAsString, getValue, hashCode
-
Field Details
-
TYPE_NAME
public static final java.lang.String TYPE_NAME- See Also:
- Constant Field Values
-
DEFAULT
-
-
Constructor Details
-
Method Details
-
validUint
public boolean validUint(java.math.BigInteger value)check if value between 0 ~ MAX_UINT256- Parameters:
value- the value need to be checked- Returns:
- true/false
-
dynamicType
public boolean dynamicType() -
offset
public int offset()
-