| Constructor and Description |
|---|
ToUnmodifiable() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,List<T>> |
list()
Collector to unmodifiable
List. |
static <T,K,U> Collector<T,?,Map<K,U>> |
map(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends U> valueMapper)
Collector to unmodifiable
Map. |
static <T> Collector<T,?,Set<T>> |
set()
Collector to unmodifiable
Set (maintains insertion order). |
static <T> Collector<T,?,Set<T>> |
set(Supplier<Set<T>> set)
Collector to unmodifiable
Set with custom backing implementation. |
public static <T> Collector<T,?,Set<T>> set(Supplier<Set<T>> set)
Set with custom backing implementation.public static <T> Collector<T,?,Set<T>> set()
Set (maintains insertion order).Collectorpublic static <T> Collector<T,?,List<T>> list()
List.CollectorCopyright © 2010–2020 The Apache Software Foundation. All rights reserved.