Package com.google.common.primitives
Class UnsignedBytes.LexicographicalComparatorHolder
java.lang.Object
com.google.common.primitives.UnsignedBytes.LexicographicalComparatorHolder
- Enclosing class:
UnsignedBytes
Provides a lexicographical comparator implementation; either a Java implementation or a faster
implementation based on
Unsafe
.
Uses reflection to gracefully fall back to the Java implementation if Unsafe
isn't
available.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Comparator
<byte[]> (package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Comparator
<byte[]> Returns the Unsafe-using Comparator, or falls back to the pure-Java implementation if unable to do so.
-
Field Details
-
UNSAFE_COMPARATOR_NAME
-
BEST_COMPARATOR
-
-
Constructor Details
-
LexicographicalComparatorHolder
LexicographicalComparatorHolder()
-
-
Method Details
-
getBestComparator
Returns the Unsafe-using Comparator, or falls back to the pure-Java implementation if unable to do so.
-