| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ImmutableMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(T
the first object to be compared. left, T the second object to be compared. right)Implements abstract com. Implements java. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. Implements java. |
| public int | |
| private int | |
| public String |
| rankMap | back to summary |
|---|---|
| pack-priv final ImmutableMap<T, Integer> rankMap | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ExplicitOrdering | back to summary |
|---|---|
| pack-priv ExplicitOrdering(List<T> valuesInOrder) | |
| ExplicitOrdering | back to summary |
|---|---|
| pack-priv ExplicitOrdering(ImmutableMap<T, Integer> rankMap) | |
| compare | back to summary |
|---|---|
| public int compare(T left, T 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
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Implements java. Doc from java. Indicates whether some other object is "equal to"
this comparator. This method must obey the general contract of
Note that it is always safe not to override
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| rank | back to summary |
|---|---|
| private int rank(T value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |