public interface CuttingOffExecutor
Modifier and Type | Interface and Description |
---|---|
static interface |
CuttingOffExecutor.Callback |
static interface |
CuttingOffExecutor.Invoke<T> |
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
invokeOrCutOff(CuttingOffExecutor.Invoke<T> invoke)
Code provided as invoke will be invoked and returned object of type T will be wrapped and returned
as
Optional or supplied invoke will not be executed and Optional.empty() will be returned |
@Nonnull <T> Optional<T> invokeOrCutOff(@Nonnull CuttingOffExecutor.Invoke<T> invoke)
Optional
or supplied invoke will not be executed and Optional.empty()
will be returnedinvoke
- implementation of CuttingOffExecutor.Invoke
functional interface that describe operation that should be invoked
or cut off and skipped.Optional.empty()
if invoke was not calledCopyright © 2002-2021 Atlassian. All Rights Reserved.