Class Uint

java.lang.Object
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 
    Modifier and Type Field Description
    static Uint DEFAULT  
    static java.lang.String TYPE_NAME  

    Fields inherited from interface org.fisco.bcos.sdk.abi.datatypes.Type

    MAX_BIT_LENGTH, MAX_BYTE_LENGTH
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected Uint​(int bitSize, java.math.BigInteger value)  
      Uint​(java.math.BigInteger value)  
  • Method Summary

    Modifier and Type Method Description
    boolean dynamicType()  
    int offset()  
    boolean validUint​(java.math.BigInteger value)
    check if value between 0 ~ MAX_UINT256

    Methods inherited from class org.fisco.bcos.sdk.abi.datatypes.NumericType

    equals, getTypeAsString, getValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Uint

      protected Uint​(int bitSize, java.math.BigInteger value)
    • Uint

      public Uint​(java.math.BigInteger value)
  • 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()