ilog.rules.bom.util

Class IlrConcatenationIterator

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


    public class IlrConcatenationIterator
    extends java.lang.Object
    implements java.util.Iterator
    This class implements an iterator which concatenates other iterators.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrConcatenationIterator()
      Constructs an empty concatenation iterator.
      IlrConcatenationIterator(java.util.Iterator iter1, java.util.Iterator iter2)
      Constructs an iterator which will yield all elements of iter1 followed by elements of iter2.
      IlrConcatenationIterator(java.util.Iterator iter1, java.util.Iterator iter2, java.util.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

      Methods 
      Modifier and Type Method and Description
      IlrConcatenationIterator addItem(java.lang.Object item)
      Adds an object to this iterator.
      IlrConcatenationIterator addSubIterator(java.util.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(java.util.Iterator iter1,
                                java.util.Iterator iter2)
        Constructs an iterator which will yield all elements of iter1 followed by elements of iter2.
      • IlrConcatenationIterator

        public IlrConcatenationIterator(java.util.Iterator iter1,
                                java.util.Iterator iter2,
                                java.util.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(java.util.Iterator iter)
        Adds an iterator to the list of iterators being concatenated by this iterator.

© Copyright IBM Corp. 1987, 2017