Class Iterators.TruffleIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>
    Enclosing class:
    Iterators

    public static final class Iterators.TruffleIterator<T>
    extends java.lang.Object
    implements java.util.Iterator<T>
    An iterator for iterables that performs all work behind Truffle boundaries.
    • Constructor Summary

      Constructors 
      Constructor Description
      TruffleIterator​(java.lang.Iterable<? extends T> iterable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forEachRemaining​(java.util.function.Consumer<? super T> action)  
      boolean hasNext()  
      T next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TruffleIterator

        public TruffleIterator​(java.lang.Iterable<? extends T> iterable)
    • Method Detail

      • hasNext

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

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

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super T> action)
        Specified by:
        forEachRemaining in interface java.util.Iterator<T>