Class Cycled<T>

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

    public final class Cycled<T>
    extends Object
    implements Iterator<T>
    Cycled Iterator.

    There is no thread-safety guarantee.

    Since:
    0.8
    • Constructor Detail

      • Cycled

        public Cycled​(Iterable<? extends T> iterable)
        Ctor.
        Parameters:
        iterable - Iterable.
    • Method Detail

      • hasNext

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

        public T next()
        Specified by:
        next in interface Iterator<T>