Class BytesType

java.lang.Object
org.fisco.bcos.sdk.abi.datatypes.BytesType
All Implemented Interfaces:
Type<byte[]>
Direct Known Subclasses:
Bytes, DynamicBytes

public abstract class BytesType
extends java.lang.Object
implements Type<byte[]>
Binary sequence of bytes.
  • Field Summary

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

    MAX_BIT_LENGTH, MAX_BYTE_LENGTH
  • Constructor Summary

    Constructors 
    Constructor Description
    BytesType​(byte[] src, java.lang.String type)  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean dynamicType()  
    boolean equals​(java.lang.Object o)  
    java.lang.String getTypeAsString()  
    byte[] 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

    offset
  • Constructor Details

    • BytesType

      public BytesType​(byte[] src, java.lang.String type)
  • Method Details

    • getValue

      public byte[] getValue()
      Specified by:
      getValue in interface Type<byte[]>
    • getTypeAsString

      public java.lang.String getTypeAsString()
      Specified by:
      getTypeAsString in interface Type<byte[]>
    • 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
    • dynamicType

      public abstract boolean dynamicType()
      Specified by:
      dynamicType in interface Type<byte[]>