Uses of Interface
no.digipost.stream.EmptyResultIfEmptySourceCollector
Packages that use EmptyResultIfEmptySourceCollector
-
Uses of EmptyResultIfEmptySourceCollector in no.digipost
Methods in no.digipost that return EmptyResultIfEmptySourceCollectorModifier and TypeMethodDescriptionstatic <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 -
Uses of EmptyResultIfEmptySourceCollector in no.digipost.stream
Methods in no.digipost.stream that return EmptyResultIfEmptySourceCollectorMethods in no.digipost.stream with parameters of type EmptyResultIfEmptySourceCollectorModifier and TypeMethodDescription<A,R> R NonEmptyStream.collect(EmptyResultIfEmptySourceCollector<? super T, A, R> collector) Collect the stream elements by using aEmptyResultIfEmptySourceCollector.