org.apache.directory.shared.ldap.util
Class JoinIterator
java.lang.Object
org.apache.directory.shared.ldap.util.JoinIterator
- All Implemented Interfaces:
- Iterator
public class JoinIterator
- extends Object
- implements Iterator
An Iterator that joins the results of many iterators.
- Version:
- $Rev: 434411 $
- 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
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
Copyright © 2004-2012. All Rights Reserved.