Returns an ordering that compares objects according to the order in which they appear in the given list. Only objects present in the list (according to Object#equals) may be compared. This comparator imposes a "partial ordering" over the type T. Subsequent changes to the {@code value
(List<T> valuesInOrder)
| 201 | * duplicate values (according to {@link Object#equals}) |
| 202 | */ |
| 203 | @GwtCompatible(serializable = true) |
| 204 | public static <T> Ordering<T> explicit(List<T> valuesInOrder) { |
| 205 | return new ExplicitOrdering<T>(valuesInOrder); |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Returns an ordering that compares objects according to the order in |