Returns an ImmutableSortedSet containing all of the elements from this FluentIterable in the order specified by comparator, with duplicates (determined by comparator.compare(x, y) == 0) removed. To produce an ImmutableSortedSet sorted by its natural ordering,
(Comparator<? super E> comparator)
| 683 | |
| 684 | |
| 685 | public final ImmutableSortedSet<E> toSortedSet(Comparator<? super E> comparator) { |
| 686 | return ImmutableSortedSet.copyOf(comparator, iterable); |
| 687 | } |
| 688 | |
| 689 | /** |
| 690 | * Returns an {@code ImmutableMultiset} containing all of the elements from this fluent iterable. |