Package com.linkedin.davinci.utils
Class ByteArrayKey
- java.lang.Object
-
- com.linkedin.davinci.utils.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 Summary
Constructors Constructor Description ByteArrayKey(byte[] content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ByteArrayKey o)
boolean
equals(java.lang.Object o)
byte[]
getContent()
int
hashCode()
static ByteArrayKey
wrap(byte[] content)
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getContent
public byte[] getContent()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
wrap
public static ByteArrayKey wrap(byte[] content)
-
compareTo
public int compareTo(ByteArrayKey o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ByteArrayKey>
-
-