Choice.OfFive<A,B,C,D,E>, Choice.OfFour<A,B,C,D>, Choice.OfThree<A,B,C>, Choice.OfTwo<A,B>, Choice.Ops3<A,B,C>, Choice.Ops4<A,B,C,D>, Choice.Ops5<A,B,C,D,E>, Choice.VisitorOfFive<A,B,C,D,E,R>, Choice.VisitorOfFour<A,B,C,D,R>, Choice.VisitorOfThree<A,B,C,R>, Choice.VisitorOfTwo<A,B,R>
Modifier and Type | Method and Description |
---|---|
<C> Choice.OfThree<C,A,B> |
expandFirst()
Expands this choice of two options into a choice of three options whose first option is
never present.
|
<C> Choice.OfThree<A,C,B> |
expandSecond()
Expands this choice of two options into a choice of three options whose second option is
never present.
|
<C> Choice.OfThree<A,B,C> |
expandThird()
Expands this choice of two options into a choice of three options whose third option is
never present.
|
<T> Choice.OfTwo<T,B> |
mapFirst(Function<? super A,? extends T> function)
Transforms the value of the first option.
|
<T> Choice.OfTwo<A,T> |
mapSecond(Function<? super B,? extends T> function)
Transforms the value of the second option.
|
<R> R |
visit(Choice.VisitorOfTwo<? super A,? super B,R> visitor)
Invokes the appropriate visit method on the given visitor.
|
<R> R visit(Choice.VisitorOfTwo<? super A,? super B,R> visitor)
Choice.VisitorOfTwo.visitFirst(Object)
will be invoked.R
- the type of result from visitingvisitor
- the visitor<C> Choice.OfThree<C,A,B> expandFirst()
C
- the type of an absent first option in the expanded choice<C> Choice.OfThree<A,C,B> expandSecond()
C
- the type of an absent second option in the expanded choice<C> Choice.OfThree<A,B,C> expandThird()
C
- the type of an absent third option in the expanded choice<T> Choice.OfTwo<T,B> mapFirst(Function<? super A,? extends T> function)
Choice
<T> Choice.OfTwo<A,T> mapSecond(Function<? super B,? extends T> function)
Choice