Class IterableOnceIterator<T>

    • Constructor Detail

      • IterableOnceIterator

        public IterableOnceIterator()
    • Method Detail

      • iterator

        public Iterator<T> iterator()
        On the first call returns this object which is also an iterator. On subsequent calls throws an exception since new iterators cannot be generated.
        Specified by:
        iterator in interface Iterable<T>
      • remove

        public void remove()
        Operation not supported.
        Specified by:
        remove in interface Iterator<T>