Class IterableOf<X>

  • Type Parameters:
    X - Type of item
    All Implemented Interfaces:
    Iterable<X>

    public final class IterableOf<X>
    extends Object
    implements Iterable<X>
    Array as iterable.

    There is no thread-safety guarantee.

    Since:
    0.12
    • Constructor Detail

      • IterableOf

        @SafeVarargs
        public IterableOf​(X... items)
        Ctor.
        Parameters:
        items - The array
      • IterableOf

        public IterableOf​(Iterator<? extends X> list)
        Ctor.
        Parameters:
        list - The list
        Since:
        0.21
      • IterableOf

        public IterableOf​(Scalar<? extends Iterator<? extends X>> sclr)
        Ctor.
        Parameters:
        sclr - The encapsulated iterator of x