MCPcopy Create free account
hub / github.com/antlr/codebuff / explicit

Method explicit

output/java_guava/1.4.17/Ordering.java:205–208  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

asListMethod · 0.95

Tested by

no test coverage detected