Uses of Class
no.digipost.concurrent.OneTimeAssignment
-
Packages that use OneTimeAssignment Package Description no.digipost no.digipost.collection no.digipost.concurrent -
-
Uses of OneTimeAssignment in no.digipost
Methods in no.digipost that return types with arguments of type OneTimeAssignment 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. -
Uses of OneTimeAssignment in no.digipost.collection
Methods in no.digipost.collection that return types with arguments of type OneTimeAssignment Modifier and Type Method Description BiConsumer<OneTimeAssignment<T>,T>EnforceAtMostOneElementCollector. accumulator()BinaryOperator<OneTimeAssignment<T>>EnforceAtMostOneElementCollector. combiner()Function<OneTimeAssignment<T>,Optional<T>>EnforceAtMostOneElementCollector. finisher()Supplier<OneTimeAssignment<T>>EnforceAtMostOneElementCollector. supplier() -
Uses of OneTimeAssignment in no.digipost.concurrent
Methods in no.digipost.concurrent that return OneTimeAssignment Modifier and Type Method Description static <V> OneTimeAssignment<V>OneTimeAssignment. defaultTo(Supplier<? extends V> defaultValue)Create a new non-assigned instance with a default value.static <V> OneTimeAssignment<V>OneTimeAssignment. defaultTo(V defaultValue)Create a new non-assigned instance with a default value.static <V> OneTimeAssignment<V>OneTimeAssignment. newInstance()Create a new non-assigned instance.
-