Class OptionalStep6<A,B,C,D,E,F>
java.lang.Object
io.atlassian.fugue.extensions.step.OptionalStep6<A,B,C,D,E,F>
- Type Parameters:
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 valueF- The type of the sixth defined value
The sixth step of the
Optional 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(Optional)
- Since:
- 4.7.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApply the provided predicate with the previous step results.<Z> Optional<Z> Terminating step expression, that will provide the previous steps to this function and return the result as aof
-
Field Details
-
optional1
-
optional2
-
optional3
-
optional4
-
optional5
-
optional6
-
-
Constructor Details
-
OptionalStep6
-
-
Method Details
-
filter
public OptionalStep6<A,B, filterC, D, E, F> (Predicate6<? super A, ? super B, ? super C, ? super D, ? super E, ? super F> predicate) Apply the provided predicate with the previous step results.- Parameters:
predicate- The check that must be satisfied by contained values- Returns:
- This step class with either the same last step value, or changed to empty
-
yield
public <Z> Optional<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 aof- Type Parameters:
Z- The type for the returned result- Parameters:
functor- The yield function to map on previous values- Returns:
- An Optional containing this result or empty
-