Class OptionStep6<A,B,C,D,E,F>

java.lang.Object
io.atlassian.fugue.extensions.step.OptionStep6<A,B,C,D,E,F>
Type Parameters:
A - The type of the first defined value
B - The type of the second defined value
C - The type of the third defined value
D - The type of the fourth defined value
E - The type of the fifth defined value
F - The type of the sixth defined value

public final class OptionStep6<A,B,C,D,E,F> extends Object
The sixth step of the Option 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(Option)

Since:
4.7.0
See Also:
  • Field Details

    • option1

      private final Option<A> option1
    • option2

      private final Option<B> option2
    • option3

      private final Option<C> option3
    • option4

      private final Option<D> option4
    • option5

      private final Option<E> option5
    • option6

      private final Option<F> option6
  • Constructor Details

  • Method Details

    • filter

      public OptionStep6<A,B,C,D,E,F> filter(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 none
    • filterNot

      public OptionStep6<A,B,C,D,E,F> filterNot(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 dissatisfied by contained values
      Returns:
      This step class with either the same last step value, or changed to none
      Since:
      6.1
    • yield

      public <Z> Option<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 some
      Type Parameters:
      Z - The type for the returned result
      Parameters:
      functor - The yield function to map on previous values
      Returns:
      An Option containing this result or none