Class AOpenIterator<T>

java.lang.Object
org.openl.util.AOpenIterator<T>
All Implemented Interfaces:
Iterator<T>, IOpenIterator<T>
Direct Known Subclasses:
AIndexedIterator, AIntIterator

public abstract class AOpenIterator<T> extends Object implements IOpenIterator<T>
Author:
snshor
  • Field Details

    • EMPTY_ITERATOR

      public static final org.openl.util.AOpenIterator.EmptyIterator<?> EMPTY_ITERATOR
  • Constructor Details

    • AOpenIterator

      public AOpenIterator()
  • Method Details

    • empty

      public static <T> IOpenIterator<T> empty()
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • size

      public int size()
      Calculates the remaining size of iterated collection without destroying itself(const in c++ terminology), -1 if it cannot be known in advance. Not every iterator is capable of doing it.
      Specified by:
      size in interface IOpenIterator<T>
      Returns:
      the number of elements left to iterate, or UNKNOWN_SIZE if it is not known, this method is "const"