Class NumericType

java.lang.Object
org.fisco.bcos.sdk.abi.datatypes.NumericType
All Implemented Interfaces:
Type<java.math.BigInteger>
Direct Known Subclasses:
FixedPointType, IntType

public abstract class NumericType
extends java.lang.Object
implements Type<java.math.BigInteger>
Common numeric type.
  • Field Summary

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

    MAX_BIT_LENGTH, MAX_BYTE_LENGTH
  • Constructor Summary

    Constructors 
    Constructor Description
    NumericType​(java.lang.String type, java.math.BigInteger value)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    java.lang.String getTypeAsString()  
    java.math.BigInteger getValue()  
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

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

    dynamicType, offset
  • Constructor Details

    • NumericType

      public NumericType​(java.lang.String type, java.math.BigInteger value)
  • Method Details

    • getTypeAsString

      public java.lang.String getTypeAsString()
      Specified by:
      getTypeAsString in interface Type<java.math.BigInteger>
    • getValue

      public java.math.BigInteger getValue()
      Specified by:
      getValue in interface Type<java.math.BigInteger>
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object