T - the returning type.R - the parameter type.public interface Operation<T,R>
| Modifier and Type | Method and Description |
|---|---|
T |
apply(R parameter)
Performs predicate action.
|
java.lang.String |
description(R parameter)
Returns the string description explaining the expected state.
|
T apply(R parameter)
parameter - the parameter to pass.java.lang.Exception - any exception thrown.java.lang.String description(R parameter)
parameter - typically that should be the reference to object
where the apply(Object) method is using
to get additional information.