public class CommandIterator extends Object
Modifier and Type | Method and Description |
---|---|
static void |
iterate(Collection collection,
Command command)
Iterate through a Collection passing the Command object each element in the collection.
|
static void |
iterate(Enumeration enumer,
Command command)
Iterate through an Enumeration passing the Command object each element in the Collection
|
static void |
iterate(Iterator iterator,
Command command)
Iterate passing each Command each Object that is being iterated
|
static void |
iterate(Map map,
Command command)
Iterate through a Map passing Command object a Map.Entry.
|
public static void iterate(Map map, Command command) throws Exception
Command code would look something like:
entry = (Map.Entry) object;
entry.getKey(), entry.getValue();
Exception
public static void iterate(Collection collection, Command command) throws Exception
Exception
public static void iterate(Enumeration enumer, Command command) throws Exception
Exception
Copyright © 2015. All rights reserved.