Rule Execution Server API

ilog.rules.bom.util
Class IlrConcatenationIterator

java.lang.Object
  extended by ilog.rules.bom.util.IlrConcatenationIterator
All Implemented Interfaces:
Iterator

public class IlrConcatenationIterator
extends Object
implements Iterator

This class implements an iterator which concatenates other iterators.


Constructor Summary
IlrConcatenationIterator()
          Constructs an empty concatenation iterator.
IlrConcatenationIterator(Iterator iter1, Iterator iter2)
          Constructs an iterator which will yield all elements of iter1 followed by elements of iter2.
IlrConcatenationIterator(Iterator iter1, Iterator iter2, Iterator iter3)
          Constructs an iterator which will yield all elements of iter1 followed by elements of iter2 and then by those of iter3.
 
Method Summary
 IlrConcatenationIterator addItem(Object item)
          Adds an object to this iterator.
 IlrConcatenationIterator addSubIterator(Iterator iter)
          Adds an iterator to the list of iterators being concatenated by this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

IlrConcatenationIterator

public IlrConcatenationIterator()
Constructs an empty concatenation iterator.


IlrConcatenationIterator

public IlrConcatenationIterator(Iterator iter1,
                                Iterator iter2)
Constructs an iterator which will yield all elements of iter1 followed by elements of iter2.


IlrConcatenationIterator

public IlrConcatenationIterator(Iterator iter1,
                                Iterator iter2,
                                Iterator iter3)
Constructs an iterator which will yield all elements of iter1 followed by elements of iter2 and then by those of iter3.

Method Detail

addSubIterator

public IlrConcatenationIterator addSubIterator(Iterator iter)
Adds an iterator to the list of iterators being concatenated by this iterator.


addItem

public IlrConcatenationIterator addItem(Object item)
Adds an object to this iterator.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013