A - The right hand side type of the first defined right valueB - The right hand side type of the second defined right valueC - The right hand side type of the third defined right valueD - The right hand side type of the fourth defined right valueE - The right hand side type of the fifth defined right valueF - The right hand side type of the sixth defined right valueLEFT - The left hand side type of the Either resultpublic final class EitherStep6<A,B,C,D,E,F,LEFT> extends Object
Either 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(Either)
for usage examples,
Either| Modifier and Type | Method and Description |
|---|---|
EitherStep6<A,B,C,D,E,F,LEFT> |
filter(Predicate6<? super A,? super B,? super C,? super D,? super E,? super F> predicate,
Supplier<? extends LEFT> unsatisfiedSupplier)
Apply the provided predicate with the previous step results.
|
<Z> Either<LEFT,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
Right |
public EitherStep6<A,B,C,D,E,F,LEFT> filter(Predicate6<? super A,? super B,? super C,? super D,? super E,? super F> predicate, Supplier<? extends LEFT> unsatisfiedSupplier)
If the predicate is not satisfied then the unsatisfiedSupplier is used to populate the left value that will prevent any further steps evaluation.
predicate - The check that must be satisfied by contained valuesunsatisfiedSupplier - Provide the value to populate the left if not
satisfiedpublic <Z> Either<LEFT,Z> yield(Function6<? super A,? super B,? super C,? super D,? super E,? super F,Z> functor)
RightZ - The right hand side type for the returned resultfunctor - The yield function to map on previous valuesCopyright © 2018 Atlassian. All rights reserved.