Class PushBackIterator<T>

java.lang.Object
net.thevpc.common.iterators.PushBackIterator<T>
All Implemented Interfaces:
Iterator<T>

public class PushBackIterator<T> extends Object implements Iterator<T>
Created by vpc on 3/19/17.
  • Constructor Details

    • PushBackIterator

      public PushBackIterator(Iterator<T> base)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • 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>
    • pushBack

      public void pushBack()