org.sadun.util
Interface ForEach.Filter

Enclosing interface:
ForEach

public static interface ForEach.Filter

Users can implement this interface (anonymously or via a named class) to apply the action only to a subset of the objects in the collection.


Method Summary
 boolean accept(java.lang.Object obj)
          Determines if the action is to be applied to the object or not
 

Method Detail

accept

public boolean accept(java.lang.Object obj)
Determines if the action is to be applied to the object or not

Parameters:
obj - the object to verify
Returns:
true if the action must be applied to the object