Class RepeatItemIterable<T>

  • Type Parameters:
    T - the type of items in the iterable.
    All Implemented Interfaces:
    Iterable<T>

    public class RepeatItemIterable<T>
    extends Object
    implements Iterable<T>
    A RepeatItemIterable is an Iterable which contains multiple copies of the same object.
    • Constructor Detail

      • RepeatItemIterable

        public RepeatItemIterable​(T item,
                                  long repeats)