Package com.linkedin.davinci.utils
Class ByteArrayKey
java.lang.Object
com.linkedin.davinci.utils.ByteArrayKey
- All Implemented Interfaces:
Comparable<ByteArrayKey>
A low overhead immutable container of byte[] suitable for use as a map key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
byte[]
int
hashCode()
static ByteArrayKey
wrap
(byte[] content)
-
Constructor Details
-
ByteArrayKey
public ByteArrayKey(byte[] content)
-
-
Method Details
-
equals
-
getContent
public byte[] getContent() -
hashCode
public int hashCode() -
wrap
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ByteArrayKey>
-