@InterfaceAudience.Public @InterfaceStability.Stable public class NullComparator extends ByteArrayComparable
Bytes.compareTo(byte[], byte[])
.Constructor and Description |
---|
NullComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] value) |
int |
compareTo(byte[] value,
int offset,
int length)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static NullComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
getValue
public int compareTo(byte[] value)
compareTo
in interface Comparable<byte[]>
compareTo
in class ByteArrayComparable
public int compareTo(byte[] value, int offset, int length)
ByteArrayComparable
compareTo
in class ByteArrayComparable
value
- byte[] to compareoffset
- offset into valuelength
- number of bytes to comparepublic byte[] toByteArray()
toByteArray
in class ByteArrayComparable
public static NullComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes
- A pb serialized NullComparator
instanceNullComparator
made from bytes
DeserializationException
toByteArray()