Package de.xima.fc.common.data.algebraic
Interface OneOfN.EitherMatcher<R,T1,T2>
-
- Type Parameters:
R
- Type of the value returned by the mapping function for each case.T1
- Type of the left case.T2
- Type of the right case.
- Enclosing class:
- OneOfN
public static interface OneOfN.EitherMatcher<R,T1,T2>
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value. This interface contains a default implementation for each case that simply returnsnull
.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default R
left(T1 left)
default R
right(T2 right)
-