Class ByteArrayKey

  • All Implemented Interfaces:
    java.lang.Comparable<ByteArrayKey>

    public class ByteArrayKey
    extends java.lang.Object
    implements java.lang.Comparable<ByteArrayKey>
    A low overhead immutable container of byte[] suitable for use as a map key.
    • Constructor Detail

      • ByteArrayKey

        public ByteArrayKey​(byte[] content)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getContent

        public byte[] getContent()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • wrap

        public static ByteArrayKey wrap​(byte[] content)
      • compareTo

        public int compareTo​(ByteArrayKey o)
        Specified by:
        compareTo in interface java.lang.Comparable<ByteArrayKey>