All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.Foreach

java.lang.Object
   |
   +----ncsa.habanero.Foreach

public abstract class Foreach
extends Object
This allows you to call a function on each object returned by an Enumeration, or get the first object for which that function returns true. You define the function in a subclass of this class.


Constructor Index

 o Foreach(Enumeration)
Construct this object with the Enumeration.

Method Index

 o doIt(Object)
Define this in a subclass to perform the operation you want
 o each()
Calls doIt on each enumerated object
 o first()
Calls doIt on each enumerated object until doIt returns true.

Constructors

 o Foreach
 public Foreach(Enumeration e)
Construct this object with the Enumeration.

Methods

 o doIt
 public abstract boolean doIt(Object o)
Define this in a subclass to perform the operation you want

 o each
 public void each()
Calls doIt on each enumerated object

 o first
 public Object first()
Calls doIt on each enumerated object until doIt returns true. Returns that object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index