A - The type of the first defined valueB - The type of the second defined valueC - The type of the third defined valueD - The type of the fourth defined valueE - The type of the fifth defined valueE - The type of the sixth defined valuepublic final class TryStep6<A,B,C,D,E,F> extends Object
Try type.
This class is not intended to be contructed manually, and should only be used
as part of a Steps chain, started by Steps.begin(Try)
for usage examples,
Try| Modifier and Type | Method and Description |
|---|---|
TryStep6<A,B,C,D,E,F> |
filter(Predicate6<? super A,? super B,? super C,? super D,? super E,? super F> predicate,
Supplier<Exception> unsatisfiedSupplier)
Apply the provided predicate with the previous step results.
|
<Z> Try<Z> |
yield(Function6<? super A,? super B,? super C,? super D,? super E,? super F,Z> functor)
Terminating step expression, that will provide the previous steps to this
function and return the result as a
Success |
public TryStep6<A,B,C,D,E,F> filter(Predicate6<? super A,? super B,? super C,? super D,? super E,? super F> predicate, Supplier<Exception> unsatisfiedSupplier)
If the predicate is not satisfied then the unsatisfiedSupplier is used to populate the failure value that will prevent any further steps evaluation.
predicate - The check that must be satisfied by contained valuesunsatisfiedSupplier - Provide the value to populate the failure if not
satisfiedpublic <Z> Try<Z> yield(Function6<? super A,? super B,? super C,? super D,? super E,? super F,Z> functor)
SuccessZ - The type for the returned resultfunctor - The yield function to map on previous valuesCopyright © 2018 Atlassian. All rights reserved.