org.apache.directory.shared.ldap.util
Class JoinIterator

java.lang.Object
  extended byorg.apache.directory.shared.ldap.util.JoinIterator
All Implemented Interfaces:
java.util.Iterator

public class JoinIterator
extends java.lang.Object
implements java.util.Iterator

An Iterator that joins the results of many iterators.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Constructor Summary
JoinIterator(java.util.Iterator[] iterators)
          Creates an Iterator that joins other Iterators.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinIterator

public JoinIterator(java.util.Iterator[] iterators)
Creates an Iterator that joins other Iterators.

Parameters:
iterators - the Iterators whose results are joined
Throws:
java.lang.IllegalArgumentException - if a null array argument, or one with less than 2 elements is used
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator


Copyright © 2003-2006 . All Rights Reserved.