Class 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.
    • Constructor Detail

      • BytesType

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

      • bytes32PaddedLength

        public int bytes32PaddedLength()
        Specified by:
        bytes32PaddedLength in interface Type<byte[]>
      • 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