@InterfaceAudience.Public @InterfaceStability.Stable public class LongComparator extends ByteArrayComparable
| Modifier and Type | Field and Description |
|---|---|
private Long |
longValue |
value| Constructor and Description |
|---|
LongComparator(long value) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
areSerializedFieldsEqual(LongComparator other) |
int |
compareTo(byte[] value,
int offset,
int length)
Special compareTo method for subclasses, to avoid
copying byte[] unnecessarily.
|
static LongComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
areSerializedFieldsEqual, compareTo, convert, getValueprivate Long longValue
public int compareTo(byte[] value,
int offset,
int length)
ByteArrayComparablecompareTo in class ByteArrayComparablevalue - byte[] to compareoffset - offset into valuelength - number of bytes to comparepublic byte[] toByteArray()
toByteArray in class ByteArrayComparablepublic static LongComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized LongComparator instanceLongComparator made from bytesDeserializationExceptiontoByteArray()boolean areSerializedFieldsEqual(LongComparator other)
other - Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.