Uses of Interface
no.digipost.stream.EmptyResultIfEmptySourceCollector
-
Packages that use EmptyResultIfEmptySourceCollector Package Description no.digipost no.digipost.collection no.digipost.stream -
-
Uses of EmptyResultIfEmptySourceCollector in no.digipost
Methods in no.digipost that return EmptyResultIfEmptySourceCollector Modifier and Type Method Description static <T> EmptyResultIfEmptySourceCollector<T,OneTimeAssignment<T>,T>DiggCollectors. allowAtMostOne()This is a collector for accessing the expected singular only element of aStream, as it will throw an exception if more than one element is processed.static <T> EmptyResultIfEmptySourceCollector<T,OneTimeAssignment<T>,T>DiggCollectors. allowAtMostOneOrElseThrow(BiFunction<? super T,? super T,? extends RuntimeException> exceptionOnExcessiveElements)This is a collector for accessing the expected singular only element of aStream, as it will throw the exception yielded from the given function if more than one element is processed.static <T> EmptyResultIfEmptySourceCollector<T,?,NonEmptyList<T>>DiggCollectors. toNonEmptyList()Collect element(s) to aNonEmptyList.static <X extends Throwable>
EmptyResultIfEmptySourceCollector<X,?,X>DiggCollectors. toSingleExceptionWithSuppressed()Collapse exceptions by taking the first (if any) and add every exception after the first assuppressedto the first one. -
Uses of EmptyResultIfEmptySourceCollector in no.digipost.collection
Classes in no.digipost.collection that implement EmptyResultIfEmptySourceCollector Modifier and Type Class Description classEnforceAtMostOneElementCollector<T> -
Uses of EmptyResultIfEmptySourceCollector in no.digipost.stream
Methods in no.digipost.stream that return EmptyResultIfEmptySourceCollector Modifier and Type Method Description static <T,A,R>
EmptyResultIfEmptySourceCollector<T,A,R>EmptyResultIfEmptySourceCollector. from(Collector<T,A,Optional<R>> collector)Methods in no.digipost.stream with parameters of type EmptyResultIfEmptySourceCollector Modifier and Type Method Description <A,R>
RNonEmptyStream. collect(EmptyResultIfEmptySourceCollector<? super T,A,R> collector)Collect the stream elements by using aEmptyResultIfEmptySourceCollector.
-