Class StreamHelper
- java.lang.Object
-
- org.hibernate.search.util.common.impl.StreamHelper
-
public final class StreamHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,E extends RuntimeException>
Collector<T,?,T>singleElement(Supplier<E> missingValueExceptionSupplier, Supplier<E> multipleValuesExceptionSupplier)static <T,K,U,M extends Map<K,U>>
Collector<T,?,M>toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, Supplier<M> mapSupplier)
-
-
-
Method Detail
-
singleElement
public static <T,E extends RuntimeException> Collector<T,?,T> singleElement(Supplier<E> missingValueExceptionSupplier, Supplier<E> multipleValuesExceptionSupplier)
-
-