Class ByteArrayWrapper

  • All Implemented Interfaces:
    Serializable

    @Internal
    public class ByteArrayWrapper
    extends Object
    implements Serializable
    A wrapper of the byte array. This class is used to calculate a deterministic hash code of a byte array.
    See Also:
    Serialized Form
    • Constructor Detail

      • ByteArrayWrapper

        public ByteArrayWrapper​(byte[] data)
      • ByteArrayWrapper

        public ByteArrayWrapper​(byte[] data,
                                int offset)
      • ByteArrayWrapper

        public ByteArrayWrapper​(byte[] data,
                                int offset,
                                int limit)
    • Method Detail

      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data)
      • getOffset

        public int getOffset()
      • setOffset

        public void setOffset​(int offset)
      • getLimit

        public int getLimit()
      • setLimit

        public void setLimit​(int limit)
      • get

        public byte get​(int i)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object