Class BytesType

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

public abstract class BytesType extends Object implements Type<byte[]>
Binary sequence of bytes.
  • Constructor Details

    • BytesType

      public BytesType(byte[] src, String type)
  • Method Details

    • bytes32PaddedLength

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

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object