Class Immutables.ImmutableIteratorWrapper<E>

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

    public static class Immutables.ImmutableIteratorWrapper<E>
    extends Object
    implements Iterator<E>
    • Constructor Detail

      • ImmutableIteratorWrapper

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

      • hasNext

        public boolean hasNext()
      • next

        public E next()
      • forEachRemaining

        public void forEachRemaining​(Consumer<? super E> action)