Class CompositeIterator<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators
      The sub-iterators (i.e., iterators to be combined or composed).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addIterator​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
      Adds the sub-iterator into the list.
      void addIterators​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
      Adds the sub-iterators into the list.
      java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> getIterators()
      Returns the list of sub-iterators.
      void removeIterator​(int i)
      Removes the i-th sub-iterator from the list.
      void removeIterators()
      Removes all sub-iterators from the list.
      void setIterators​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
      Sets the sub-iterators.
      int size()
      Returns the number of iterators in the list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iterators

        protected java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators
        The sub-iterators (i.e., iterators to be combined or composed).
    • Constructor Detail

      • CompositeIterator

        public CompositeIterator()
    • Method Detail

      • getIterators

        public java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> getIterators()
        Returns the list of sub-iterators.
        Returns:
        the list of sub-iterators.
      • addIterator

        public void addIterator​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
        Adds the sub-iterator into the list.
        Parameters:
        iterator - the sub-iterator to be added to the list.
      • addIterators

        public void addIterators​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
        Adds the sub-iterators into the list.
        Parameters:
        iterators - the sub-iterators to be added to the list.
      • setIterators

        public void setIterators​(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
        Sets the sub-iterators.
        Parameters:
        iterators - the sub-iterators to be set.
      • removeIterator

        public void removeIterator​(int i)
        Removes the i-th sub-iterator from the list.
        Parameters:
        i - the index of the sub-iterator to be removed from the list.
      • removeIterators

        public void removeIterators()
        Removes all sub-iterators from the list.
      • size

        public int size()
        Returns the number of iterators in the list.
        Returns:
        the size of the sub-iterator list.