static enum Bytes.LexicographicalComparerHolder.UnsafeComparer extends Enum<Bytes.LexicographicalComparerHolder.UnsafeComparer> implements Bytes.Comparer<byte[]>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
(package private) static sun.misc.Unsafe |
theUnsafe |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(byte[] buffer1,
int offset1,
int length1,
byte[] buffer2,
int offset2,
int length2)
Lexicographically compare two arrays.
|
static Bytes.LexicographicalComparerHolder.UnsafeComparer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bytes.LexicographicalComparerHolder.UnsafeComparer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bytes.LexicographicalComparerHolder.UnsafeComparer INSTANCE
static final sun.misc.Unsafe theUnsafe
public static Bytes.LexicographicalComparerHolder.UnsafeComparer[] values()
for (Bytes.LexicographicalComparerHolder.UnsafeComparer c : Bytes.LexicographicalComparerHolder.UnsafeComparer.values()) System.out.println(c);
public static Bytes.LexicographicalComparerHolder.UnsafeComparer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int compareTo(byte[] buffer1, int offset1, int length1, byte[] buffer2, int offset2, int length2)
compareTo
in interface Bytes.Comparer<byte[]>
buffer1
- left operandbuffer2
- right operandoffset1
- Where to start comparing in the left bufferoffset2
- Where to start comparing in the right bufferlength1
- How much to compare from the left bufferlength2
- How much to compare from the right bufferCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.