|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Action<T>
Action
is a wrapper for a void
returning
method. OOP is great, especially when we use it to encode
functional programming features such as higher-order functions :)
Method Summary | |
---|---|
void |
action(T t)
Perform some action on t . |
Method Detail |
---|
void action(T t)
t
. As this method does
not return anything, the only way the action produces
something is through side-effects; that is why we call it an
action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |