org.apache.directory.shared.util
Class JoinIterator
java.lang.Object
org.apache.directory.shared.util.JoinIterator
- All Implemented Interfaces:
- Iterator<Object>
public class JoinIterator
- extends Object
- implements Iterator<Object>
An Iterator that joins the results of many iterators.
- Author:
- Apache Directory Project
|
Constructor Summary |
JoinIterator(Iterator<?>[] iterators)
Creates an Iterator that joins other Iterators. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoinIterator
public JoinIterator(Iterator<?>[] iterators)
- Creates an Iterator that joins other Iterators.
- Parameters:
iterators - the Iterators whose results are joined
- Throws:
IllegalArgumentException - if a null array argument, or one with less than 2 elements is
used
remove
public void remove()
- Specified by:
remove in interface Iterator<Object>
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<Object>
next
public Object next()
- Specified by:
next in interface Iterator<Object>
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.