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

Method toSortedList

output/java_guava/1.4.17/FluentIterable.java:652–654  ·  view source on GitHub ↗

Returns an ImmutableList containing all of the elements from this FluentIterable in the order specified by comparator. To produce an ImmutableList sorted by its natural ordering, use toSortedList(Ordering.natural()). Stream equivalent: {@cod

(Comparator<? super E> comparator)

Source from the content-addressed store, hash-verified

650
651
652 public final ImmutableList<E> toSortedList(Comparator<? super E> comparator) {
653 return Ordering.from(comparator).immutableSortedCopy(iterable);
654 }
655
656 /**
657 * Returns an {@code ImmutableSet} containing all of the elements from this fluent iterable with

Callers

nothing calls this directly

Calls 2

fromMethod · 0.95
immutableSortedCopyMethod · 0.45

Tested by

no test coverage detected