Uses of Interface
org.anchoranalysis.core.functional.checked.CheckedConsumer
Packages that use CheckedConsumer
Package
Description
Collection-related classes with general applicability that don't belong elsewhere.
Utilities and interfaces for applying functional-programming.
A centralized location for all command-line options used by the launcher.
Adding/removing/changing the arguments (input and output) from the experiment via
command-line-options.
-
Uses of CheckedConsumer in org.anchoranalysis.core.collection
Methods in org.anchoranalysis.core.collection with parameters of type CheckedConsumerModifier and TypeMethodDescriptionvoid
MapCreateCountdown.processElement
(K key, CheckedConsumer<V, OperationFailedException> operation) Runs an operation on the element, creating if necessary, without decrementing the count.void
MapCreateCountdown.processElementDecrement
(K key, CheckedConsumer<V, OperationFailedException> operation) Runs an operation on the element, creating if necessary, and decrementing the count. -
Uses of CheckedConsumer in org.anchoranalysis.core.functional
Methods in org.anchoranalysis.core.functional with parameters of type CheckedConsumerModifier and TypeMethodDescriptionstatic <T,
E extends Exception>
voidCheckedStream.forEach
(Stream<T> stream, Class<? extends Exception> throwableClass, CheckedConsumer<T, E> consumer) Performs aStream.forEach(java.util.function.Consumer<? super T>)
but accepts a consumer that can throw a checked-exception.static <S,
E extends Exception>
voidOptionalUtilities.ifPresent
(Optional<S> optional, CheckedConsumer<S, E> consumerFunction) LikeOptional.map(java.util.function.Function<? super T, ? extends U>)
but tolerates an exception in the mapping function, which is immediately thrown.static <T,
E extends Exception>
voidFunctionalIterate.reverseIterateArray
(T[] array, CheckedConsumer<T, E> consumer) Iterates through every element in an array in reverse order -
Uses of CheckedConsumer in org.anchoranalysis.launcher.options
Methods in org.anchoranalysis.launcher.options with parameters of type CheckedConsumerModifier and TypeMethodDescriptionvoid
CommandLineExtracter.ifPresentMultiple
(String optionName, CheckedConsumer<String[], ExperimentExecutionException> consumer) Executes aConsumer
if an option is present - allowing that option to occur multiple times.void
CommandLineExtracter.ifPresentSingle
(String optionName, CheckedConsumer<String, ExperimentExecutionException> consumer) Executes aConsumer
if an option is present - allowing that option to occur only once. -
Uses of CheckedConsumer in org.anchoranalysis.launcher.options.process
Methods in org.anchoranalysis.launcher.options.process with parameters of type CheckedConsumerModifier and TypeMethodDescriptionprotected void
AddOptionsFromCommandLine.ifPresentMultiple
(String optionShort, CheckedConsumer<String[], ExperimentExecutionException> consumer) Executesconsumer
if one or more options exists with a single argument.protected void
AddOptionsFromCommandLine.ifPresentSingle
(String optionShort, CheckedConsumer<String, ExperimentExecutionException> consumer) Executesconsumer
if maximally one option exists with a single argument - without passingassociated
.