Class RandomIterator<T>

  • Type Parameters:
    T - the type of elements in the list
    All Implemented Interfaces:
    Iterable<T>

    public class RandomIterator<T>
    extends Object
    implements Iterable<T>
    An infinite iterator that will return random items from the given list.
    • Constructor Detail

      • RandomIterator

        public RandomIterator​(List<T> coll)