Package | Description |
---|---|
org.anchoranalysis.core.collection |
Collection-related classes with general applicability that don't belong elsewhere.
|
org.anchoranalysis.core.functional |
Utilities and interfaces for applying functional-programming.
|
org.anchoranalysis.launcher.options |
A centralized location for all command-line options used by the launcher.
|
org.anchoranalysis.launcher.options.process |
Adding/removing/changing the arguments (input and output) from the experiment via
command-line-options.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception> |
CheckedStream.forEach(java.util.stream.Stream<T> stream,
Class<? extends Exception> throwableClass,
CheckedConsumer<T,E> consumer)
Performs a
Stream.forEach(java.util.function.Consumer<? super T>) but accepts a consumer that can throw a checked-exception. |
static <S,E extends Exception> |
OptionalUtilities.ifPresent(Optional<S> optional,
CheckedConsumer<S,E> consumerFunction)
Like
Optional.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> |
FunctionalIterate.reverseIterateArray(T[] array,
CheckedConsumer<T,E> consumer)
Iterates through every element in an array in reverse order
|
Modifier and Type | Method and Description |
---|---|
void |
CommandLineExtracter.ifPresentMultiple(String optionName,
CheckedConsumer<String[],ExperimentExecutionException> consumer)
Executes a
Consumer if an option is present - allowing that option to occur
multiple times. |
void |
CommandLineExtracter.ifPresentSingle(String optionName,
CheckedConsumer<String,ExperimentExecutionException> consumer)
Executes a
Consumer if an option is present - allowing that option to occur only
once. |
Modifier and Type | Method and Description |
---|---|
protected void |
AddOptionsFromCommandLine.ifPresentMultiple(String optionShort,
CheckedConsumer<String[],ExperimentExecutionException> consumer)
Executes
consumer if one or more options exists with a single
argument. |
protected void |
AddOptionsFromCommandLine.ifPresentSingle(String optionShort,
CheckedConsumer<String,ExperimentExecutionException> consumer)
Executes
consumer if maximally one option exists with a single
argument - without passing associated . |
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.