Class TreeBag.InternalIterator

java.lang.Object
org.eclipse.collections.impl.bag.sorted.mutable.TreeBag.InternalIterator
All Implemented Interfaces:
Iterator<T>
Enclosing class:
TreeBag<T>

private class TreeBag.InternalIterator extends Object implements Iterator<T>
  • Field Details

    • iterator

      private final Iterator<T> iterator
    • currentItem

      private T currentItem
    • occurrences

      private int occurrences
    • canRemove

      private boolean canRemove
  • Constructor Details

    • InternalIterator

      private InternalIterator()
  • 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>