Class TrampoliningIterator<A,B>

java.lang.Object
com.jnape.palatable.lambda.internal.iteration.TrampoliningIterator<A,B>
All Implemented Interfaces:
Iterator<B>

public final class TrampoliningIterator<A,B> extends Object implements Iterator<B>
  • Field Details

  • Constructor Details

  • Method Details

    • hasNext

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

      public B next()
      Specified by:
      next in interface Iterator<A>
    • queueNextIfPossible

      private void queueNextIfPossible()
    • tickNext

      private void tickNext()
    • pruneAfter

      private <R> R pruneAfter(Fn0<? extends R> fn)