com.generationjava.collections
Class IteratorGrouper

java.lang.Object
  extended bycom.generationjava.collections.IteratorGrouper
All Implemented Interfaces:
Grouper

public class IteratorGrouper
extends Object
implements Grouper

Take an enumeration of different types of objects. Pass them into this object and then get them out by classname.


Constructor Summary
IteratorGrouper(Iterator iterator)
           
 
Method Summary
 void addIterator(Iterator iterator)
          Add this enumeration to the grouper.
 Iterator iterateGroup(String classname)
          Get an enumeration of all the Classes of type classname.
 Iterator iterateTypes()
          Enumerate over the types this group contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorGrouper

public IteratorGrouper(Iterator iterator)
Method Detail

addIterator

public void addIterator(Iterator iterator)
Add this enumeration to the grouper.


iterateGroup

public Iterator iterateGroup(String classname)
Get an enumeration of all the Classes of type classname.


iterateTypes

public Iterator iterateTypes()
Enumerate over the types this group contains.



Copyright © 2000-2005 OSJava. All Rights Reserved.