java.lang.Object
All Implemented Interfaces:
Type<java.math.BigInteger>
Direct Known Subclasses:
Int104, Int112, Int120, Int128, Int136, Int144, Int152, Int16, Int160, Int168, Int176, Int184, Int192, Int200, Int208, Int216, Int224, Int232, Int24, Int240, Int248, Int256, Int32, Int40, Int48, Int56, Int64, Int72, Int8, Int80, Int88, Int96

public class Int
extends IntType
Integer type.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static Int 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 Int​(int bitSize, java.math.BigInteger value)  
      Int​(java.math.BigInteger value)  
  • Method Summary

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

    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

    • Int

      public Int​(java.math.BigInteger value)
    • Int

      protected Int​(int bitSize, java.math.BigInteger value)
  • Method Details

    • validInt

      public boolean validInt​(java.math.BigInteger value)
      check if value between MIN_INT256 ~ MIN_INT256
      Parameters:
      value - the value need to be checked
      Returns:
      true/false
    • dynamicType

      public boolean dynamicType()
    • offset

      public int offset()