Class IteratorEntry<T>


  • public class IteratorEntry<T>
    extends java.lang.Object
    This class represents an iterator entry that is used in some compositors.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int count
      The overall number of items being iterated.
      static float DEFAULT_POINT_POSITION
      The default point position.
      boolean done
      The flag indicating that the composition has been done.
      int index
      The index of the current item.
      ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator
      The iterator itself.
      int point
      The point where the composition (nesting, overlapping, etc.) is applied.
    • Constructor Summary

      Constructors 
      Constructor Description
      IteratorEntry​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
      Constructs an iterator entry whose composition point is in the middle.
      IteratorEntry​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator, float position)
      Constructs an iterator entry.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • DEFAULT_POINT_POSITION

        public static final float DEFAULT_POINT_POSITION
        The default point position.
        See Also:
        Constant Field Values
      • index

        public int index
        The index of the current item.
      • point

        public int point
        The point where the composition (nesting, overlapping, etc.) is applied.
      • count

        public int count
        The overall number of items being iterated.
      • done

        public boolean done
        The flag indicating that the composition has been done.
      • iterator

        public ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator
        The iterator itself.
    • Constructor Detail

      • IteratorEntry

        public IteratorEntry​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator,
                             float position)
        Constructs an iterator entry.
        Parameters:
        iterator - the iterator.
        position - the relative position of the composition point.
      • IteratorEntry

        public IteratorEntry​(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
        Constructs an iterator entry whose composition point is in the middle.
        Parameters:
        iterator - the iterator.