Class VerboseIterator<T>

  • Type Parameters:
    T - Type of item
    All Implemented Interfaces:
    Iterator<T>

    public final class VerboseIterator<T>
    extends Object
    implements Iterator<T>
    Verbose iterator.
    Since:
    0.10
    • Constructor Detail

      • VerboseIterator

        public VerboseIterator​(Iterator<T> iter,
                               org.cactoos.Text msg)
        Ctor.
        Parameters:
        iter - Original iterator
        msg - Error message
    • Method Detail

      • 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>