Returns a Collector that accumulates the input elements into a new ImmutableSet, in encounter order.
()
| 45 | * ImmutableSet}, in encounter order. |
| 46 | */ |
| 47 | public static <T> Collector<T, ?, ImmutableSet<T>> toImmutableSet() { |
| 48 | return collectingAndThen(toList(), ImmutableSet::copyOf); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Returns a {@link Collector} that accumulates elements into an {@code ImmutableMap} whose keys |
no outgoing calls
no test coverage detected