com.generationjava.collections
Class IteratorGrouper

java.lang.Object
  |
  +--com.generationjava.collections.IteratorGrouper
All Implemented Interfaces:
Grouper

public class IteratorGrouper
extends java.lang.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(java.util.Iterator iterator)
           
 
Method Summary
 void addIterator(java.util.Iterator iterator)
          Add this enumeration to the grouper.
 java.util.Iterator iterateGroup(java.lang.String classname)
          Get an enumeration of all the Classes of type classname.
 java.util.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(java.util.Iterator iterator)
Method Detail

addIterator

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


iterateGroup

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


iterateTypes

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



Copyright © 2000-2003 OSJava. All Rights Reserved.