org.opennms.core.utils
Class IteratorIterator<T>

java.lang.Object
  extended by org.opennms.core.utils.IteratorIterator<T>
All Implemented Interfaces:
Iterable<T>, Iterator<T>
Direct Known Subclasses:
JdbcSet.JdbcSetIterator

public class IteratorIterator<T>
extends Object
implements Iterator<T>, Iterable<T>


Constructor Summary
IteratorIterator(Iterator<T>... iterators)
          Constructor for IteratorIterator.
IteratorIterator(List<Iterator<T>> iterators)
          Constructor for IteratorIterator.
 
Method Summary
 boolean hasNext()
          hasNext
 Iterator<T> iterator()
          iterator
 T next()
          next
 void remove()
          remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorIterator

public IteratorIterator(Iterator<T>... iterators)

Constructor for IteratorIterator.

Type Parameters:
T - a T object.
Parameters:
iterators - a Iterator object.

IteratorIterator

public IteratorIterator(List<Iterator<T>> iterators)

Constructor for IteratorIterator.

Parameters:
iterators - a List object.
Method Detail

hasNext

public boolean hasNext()

hasNext

Specified by:
hasNext in interface Iterator<T>
Returns:
a boolean.

next

public T next()

next

Specified by:
next in interface Iterator<T>
Returns:
a T object.

remove

public void remove()

remove

Specified by:
remove in interface Iterator<T>

iterator

public Iterator<T> iterator()

iterator

Specified by:
iterator in interface Iterable<T>
Returns:
a Iterator object.


Copyright © 2011. All Rights Reserved.