Package org.apache.bval.jsr.util
Class ToUnmodifiable
- java.lang.Object
-
- org.apache.bval.jsr.util.ToUnmodifiable
-
-
Constructor Summary
Constructors Constructor Description ToUnmodifiable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Collector<T,?,List<T>>
list()
Collector to unmodifiableList
.static <T,K,U>
Collector<T,?,Map<K,U>>map(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper)
Collector to unmodifiableMap
.static <T> Collector<T,?,Set<T>>
set()
Collector to unmodifiableSet
(maintains insertion order).static <T> Collector<T,?,Set<T>>
set(Supplier<Set<T>> set)
Collector to unmodifiableSet
with custom backing implementation.
-
-
-
Method Detail
-
set
public static <T> Collector<T,?,Set<T>> set(Supplier<Set<T>> set)
Collector to unmodifiableSet
with custom backing implementation.
-
set
public static <T> Collector<T,?,Set<T>> set()
Collector to unmodifiableSet
(maintains insertion order).- Returns:
Collector
-
list
public static <T> Collector<T,?,List<T>> list()
Collector to unmodifiableList
.- Returns:
Collector
-
-