Package org.apache.tuweni.bytes
Class AbstractBytes
java.lang.Object
org.apache.tuweni.bytes.AbstractBytes
- All Implemented Interfaces:
Comparable<Bytes>,Bytes
- Direct Known Subclasses:
DelegatingBytes,MutableByteBufferWrappingBytes
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tuweni.bytes.Bytes
and, and, appendHexTo, appendTo, appendTo, bitLength, commonPrefix, commonPrefixLength, compareTo, copy, copyTo, copyTo, get, getInt, getInt, getLong, getLong, hasLeadingZero, hasLeadingZeroByte, isEmpty, isZero, mutableCopy, not, not, numberOfLeadingZeroBytes, numberOfLeadingZeros, numberOfTrailingZeroBytes, or, or, reverse, shiftLeft, shiftLeft, shiftRight, shiftRight, size, slice, slice, toArray, toArray, toArrayUnsafe, toBase64String, toBigInteger, toBigInteger, toEllipsisHexString, toFastHex, toHexString, toInt, toInt, toLong, toLong, toQuantityHexString, toShortHexString, toUnprefixedHexString, toUnsignedBigInteger, toUnsignedBigInteger, trimLeadingZeros, trimTrailingZeros, update, xor, xor
-
Constructor Details
-
AbstractBytes
public AbstractBytes()
-
-
Method Details
-
equals
Compare this value and the provided one for equality.Two
Bytesvalues are equal is they have contain the exact same bytes. -
computeHashcode
protected int computeHashcode() -
hashCode
public int hashCode() -
toString
Description copied from interface:BytesReturn the hexadecimal string representation of this value.
-