public class CheckType<R> extends CaseBeingBuilt
| Constructor and Description |
|---|
CheckType() |
| Modifier and Type | Method and Description |
|---|---|
<T,R> CheckType<R> |
isType(ActionWithReturn<T,R> a)
Create a completed Case which is triggered when matching input is of the same type (T) as the input parameter
to ActionWithReturn.
|
public <T,R> CheckType<R> isType(ActionWithReturn<T,R> a)
a - Action for the new Case, Predicate for the Case will be created from the input type to the Action.