ariba.util.core
Class IteratorUnion

java.lang.Object
  extended by ariba.util.core.IteratorUnion
All Implemented Interfaces:
Iterator

public class IteratorUnion
extends Object
implements Iterator

An enumeration that is the union of a list of enumerations.


Constructor Summary
IteratorUnion(Iterator[] enumerations)
          Create an enumeration of an array of enumeration in consecutive order, based on their index.
IteratorUnion(Iterator e1, Iterator e2)
          Create an enumeration of e1 followed by e2.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorUnion

public IteratorUnion(Iterator e1,
                     Iterator e2)
Create an enumeration of e1 followed by e2.


IteratorUnion

public IteratorUnion(Iterator[] enumerations)
Create an enumeration of an array of enumeration in consecutive order, based on their index.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.