public class ImmutableCollectors
extends java.lang.Object
Collector
that creates immutable collections, similar to
Collectors
.Constructor and Description |
---|
ImmutableCollectors() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> |
toImmutableList() |
static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> |
toImmutableSet() |
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toImmutableList()
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toImmutableSet()