| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AllEqualOrdering | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Object
the first object to be compared. left, Object the second object to be compared. right)Implements abstract com. Implements java. |
| public <E> ImmutableList | immutableSortedCopy(Iterable<E> iterable)
Overrides com. elements sorted by this ordering.
|
| private Object | |
| public <S extends @Nullable Object> Ordering | reverse()
Overrides com. Ordering equivalent to Collections#reverseOrder(Comparator).
|
| public <E extends @Nullable Object> List | sortedCopy(Iterable<E> iterable)
Overrides com. elements sorted by this ordering; use this
only when the resulting list may need further modification, or may contain null.
|
| public String |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final AllEqualOrdering INSTANCE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AllEqualOrdering | back to summary |
|---|---|
| pack-priv AllEqualOrdering() | |
| compare | back to summary |
|---|---|
| public int compare(Object left, Object right) Implements abstract com. Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| immutableSortedCopy | back to summary |
|---|---|
| public <E> ImmutableList Overrides com. Doc from com. Returns an immutable list containing Unlike Performance note: According to our benchmarking on Open JDK 7, this method is the most efficient way to make a sorted copy of a collection.
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| reverse | back to summary |
|---|---|
| public <S extends @Nullable Object> Ordering Overrides com. Doc from com. Returns the reverse of this ordering; the Java 8 users: Use
| |
| sortedCopy | back to summary |
|---|---|
| public <E extends @Nullable Object> List Overrides com. Doc from com. Returns a mutable list containing Unlike Performance note: According to our
benchmarking
on Open JDK 7,
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |