public class ImmutableCollectors
extends java.lang.Object
Stream
.Constructor and Description |
---|
ImmutableCollectors() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.stream.Collector<T,java.util.Set<T>,java.util.Set<T>> |
toImmutableLinkedSet()
Creates a
Collector of an immutable Set for Stream.collect(Collector) . |
static <T> java.util.stream.Collector<T,java.util.List<T>,java.util.List<T>> |
toImmutableList()
Creates a
Collector of an immutable list for Stream.collect(Collector) . |
static <T> java.util.stream.Collector<T,java.util.Set<T>,java.util.Set<T>> |
toImmutableSet()
Creates a
Collector of an immutable Set for Stream.collect(Collector) . |
public static <T> java.util.stream.Collector<T,java.util.List<T>,java.util.List<T>> toImmutableList()
Collector
of an immutable list for Stream.collect(Collector)
.T
- type of the immutable list.public static <T> java.util.stream.Collector<T,java.util.Set<T>,java.util.Set<T>> toImmutableSet()
Collector
of an immutable Set for Stream.collect(Collector)
.T
- type of the immutable set.public static <T> java.util.stream.Collector<T,java.util.Set<T>,java.util.Set<T>> toImmutableLinkedSet()
Collector
of an immutable Set for Stream.collect(Collector)
.T
- type of the immutable linked hash set.