Uses of Class
no.digipost.concurrent.OneTimeAssignment
Packages that use OneTimeAssignment
-
Uses of OneTimeAssignment in no.digipost
Methods in no.digipost that return types with arguments of type OneTimeAssignmentModifier 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. -
Uses of OneTimeAssignment in no.digipost.collection
Methods in no.digipost.collection that return types with arguments of type OneTimeAssignmentModifier and TypeMethodDescriptionEnforceAtMostOneElementCollector.accumulator()EnforceAtMostOneElementCollector.combiner()EnforceAtMostOneElementCollector.finisher()EnforceAtMostOneElementCollector.supplier() -
Uses of OneTimeAssignment in no.digipost.concurrent
Methods in no.digipost.concurrent that return OneTimeAssignmentModifier and TypeMethodDescriptionstatic final <V> OneTimeAssignment<V>Create a new non-assigned instance with a default value.static final <V> OneTimeAssignment<V>OneTimeAssignment.defaultTo(V defaultValue) Create a new non-assigned instance with a default value.static final <V> OneTimeAssignment<V>OneTimeAssignment.newInstance()Create a new non-assigned instance.