Class SmallSet.IteratorImpl<T>

java.lang.Object
org.objectweb.asm.tree.analysis.SmallSet.IteratorImpl<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
SmallSet<T>

static class SmallSet.IteratorImpl<T> extends Object implements Iterator<T>
  • Field Details

    • firstElement

      private T firstElement
      The next element to return in next(). Maybe null.
    • secondElement

      private T secondElement
      The element to return in next(), after firstElement is returned. If firstElement is null then this field must be null, otherwise it must be different from firstElement.
  • Constructor Details

    • IteratorImpl

      IteratorImpl(T firstElement, T secondElement)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

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

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