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 TypeMethodDescriptionvoidMapCreateCountdown.processElement(K key, CheckedConsumer<V, OperationFailedException> operation) Runs an operation on the element, creating if necessary, without decrementing the count.voidMapCreateCountdown.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 TypeMethodDescriptionvoidCommandLineExtracter.ifPresentMultiple(String optionName, CheckedConsumer<String[], ExperimentExecutionException> consumer) Executes aConsumerif an option is present - allowing that option to occur multiple times.voidCommandLineExtracter.ifPresentSingle(String optionName, CheckedConsumer<String, ExperimentExecutionException> consumer) Executes aConsumerif 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 voidAddOptionsFromCommandLine.ifPresentMultiple(String optionShort, CheckedConsumer<String[], ExperimentExecutionException> consumer) Executesconsumerif one or more options exists with a single argument.protected voidAddOptionsFromCommandLine.ifPresentSingle(String optionShort, CheckedConsumer<String, ExperimentExecutionException> consumer) Executesconsumerif maximally one option exists with a single argument - without passingassociated.