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)
| 203 | */ |
| 204 | |
| 205 | @GwtCompatible(serializable = true) |
| 206 | public static <T> Ordering<T> explicit(List<T> valuesInOrder) { |
| 207 | return new ExplicitOrdering<T>(valuesInOrder); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Returns an ordering that compares objects according to the order in |