@InterfaceAudience.Public @InterfaceStability.Stable public class NullComparator extends ByteArrayComparable
Bytes.compareTo(byte[], byte[]).| 构造器和说明 |
|---|
NullComparator() |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
getValuepublic int compareTo(byte[] value)
compareTo 在接口中 Comparable<byte[]>compareTo 在类中 ByteArrayComparablepublic int compareTo(byte[] value,
int offset,
int length)
ByteArrayComparablecompareTo 在类中 ByteArrayComparablevalue - byte[] to compareoffset - offset into valuelength - number of bytes to comparepublic byte[] toByteArray()
toByteArray 在类中 ByteArrayComparablepublic static NullComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized NullComparator instanceNullComparator made from bytesDeserializationExceptiontoByteArray()Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.