static enum UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator extends java.lang.Enum<UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator> implements java.util.Comparator<byte[]>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
BIG_ENDIAN |
(package private) static int |
BYTE_ARRAY_BASE_OFFSET
The offset to the first element in a byte array.
|
(package private) static sun.misc.Unsafe |
theUnsafe |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] left,
byte[] right) |
private static sun.misc.Unsafe |
getUnsafe()
Returns a sun.misc.Unsafe.
|
java.lang.String |
toString() |
static UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator INSTANCE
static final boolean BIG_ENDIAN
static final sun.misc.Unsafe theUnsafe
static final int BYTE_ARRAY_BASE_OFFSET
public static UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator[] values()
for (UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator c : UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.values()) System.out.println(c);
public static UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate static sun.misc.Unsafe getUnsafe()
public int compare(byte[] left, byte[] right)
compare
in interface java.util.Comparator<byte[]>
public java.lang.String toString()
toString
in class java.lang.Enum<UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator>