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

Method explicit

corpus/java/training/guava/collect/Ordering.java:203–206  ·  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

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

Callers

nothing calls this directly

Calls 1

asListMethod · 0.95

Tested by

no test coverage detected