jpaul.Misc
Interface Action<T>

All Known Implementing Classes:
ActionPredicate

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 :)

Version:
$Id: Action.java,v 1.2 2005/08/12 23:16:49 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu

Method Summary
 void action(T t)
          Perform some action on t.
 

Method Detail

action

void action(T t)
Perform some action on 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.



Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu