com.opensymphony.xwork2.util
Class ClassLoaderUtil.AggregateIterator<E>
java.lang.Object
com.opensymphony.xwork2.util.ClassLoaderUtil.AggregateIterator<E>
- All Implemented Interfaces:
- Iterator<E>
- Enclosing class:
- ClassLoaderUtil
protected static class ClassLoaderUtil.AggregateIterator<E>
- extends Object
- implements Iterator<E>
Aggregates Enumeration instances into one iterator and filters out duplicates. Always keeps one
ahead of the enumerator to protect against returning duplicates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enums
LinkedList<Enumeration<E>> enums
cur
Enumeration<E> cur
next
E next
loaded
Set<E> loaded
ClassLoaderUtil.AggregateIterator
protected ClassLoaderUtil.AggregateIterator()
addEnumeration
public ClassLoaderUtil.AggregateIterator addEnumeration(Enumeration<E> e)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
next
public E next()
- Specified by:
next
in interface Iterator<E>
determineCurrentEnumeration
private Enumeration<E> determineCurrentEnumeration()
loadNext
private E loadNext()
remove
public void remove()
- Specified by:
remove
in interface Iterator<E>
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.