Class CyclingIterator<T>

    • Constructor Detail

      • CyclingIterator

        public CyclingIterator​(Collection<T> items)
        Basic constructor.
        Parameters:
        items - collection to iterate over
    • Method Detail

      • hasNext

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

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