| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> |
toImmutableList()
Returns a
Collector that accumulates the input elements into a
new ImmutableList. |
static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> |
toImmutableSet()
Returns a
Collector that accumulates the input elements into a
new ImmutableSet. |
public static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
Collector that accumulates the input elements into a
new ImmutableSet.T - typeCollector which collects all the input elements into a
ImmutableSetpublic static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toImmutableList()
Collector that accumulates the input elements into a
new ImmutableList.T - typeCollector which collects all the input elements into a
ImmutableList, in encounter order