Class Immutables.ImmutableIteratorWrapper<E>

  • All Implemented Interfaces:
    java.util.Iterator<E>
    Enclosing class:
    Immutables

    public static class Immutables.ImmutableIteratorWrapper<E>
    extends java.lang.Object
    implements java.util.Iterator<E>
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutableIteratorWrapper​(java.util.Iterator<? extends E> iterator)  
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        remove
    • Constructor Detail

      • ImmutableIteratorWrapper

        public ImmutableIteratorWrapper​(java.util.Iterator<? extends E> iterator)
    • Method Detail

      • hasNext

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

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

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