public class CommandIterator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
iterate(java.util.Collection collection,
Command command)
Iterate through a Collection passing the Command object each element in the collection.
|
static void |
iterate(java.util.Enumeration enumer,
Command command)
Iterate through an Enumeration passing the Command object each element in the Collection
|
static void |
iterate(java.util.Iterator iterator,
Command command)
Iterate passing each Command each Object that is being iterated
|
static void |
iterate(java.util.Map map,
Command command)
Iterate through a Map passing Command object a Map.Entry.
|
static void |
main(java.lang.String[] argv)
Test code for this class
|
public static void iterate(java.util.Map map, Command command) throws java.lang.Exception
java.lang.Exception
public static void iterate(java.util.Collection collection, Command command) throws java.lang.Exception
java.lang.Exception
public static void iterate(java.util.Enumeration enumer, Command command) throws java.lang.Exception
java.lang.Exception
public static void iterate(java.util.Iterator iterator, Command command) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception