Class StreamHelper
java.lang.Object
org.hibernate.search.util.common.impl.StreamHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,E extends RuntimeException>
Collector<T,?, T> singleElement(Supplier<E> missingValueExceptionSupplier, Supplier<E> multipleValuesExceptionSupplier) toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, Supplier<M> mapSupplier)
-
Method Details
-
singleElement
public static <T,E extends RuntimeException> Collector<T,?, singleElementT> (Supplier<E> missingValueExceptionSupplier, Supplier<E> multipleValuesExceptionSupplier) -
toMap
-