static class UnsignedBytes.LexicographicalComparatorHolder
extends java.lang.Object
Unsafe.
Uses reflection to gracefully fall back to the Java implementation if Unsafe isn't
available.
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
UnsignedBytes.LexicographicalComparatorHolder.PureJavaComparator |
(package private) static class |
UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator |
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.Comparator<byte[]> |
BEST_COMPARATOR |
(package private) static java.lang.String |
UNSAFE_COMPARATOR_NAME |
| Constructor and Description |
|---|
LexicographicalComparatorHolder() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.util.Comparator<byte[]> |
getBestComparator()
Returns the Unsafe-using Comparator, or falls back to the pure-Java implementation if unable
to do so.
|