Class HeadOf<T>

  • Type Parameters:
    T - Element type
    All Implemented Interfaces:
    Iterable<T>

    public final class HeadOf<T>
    extends IterableEnvelope<T>
    Head portion of the iterable.

    There is no thread-safety guarantee.

    Since:
    0.8
    • Constructor Detail

      • HeadOf

        @SafeVarargs
        public HeadOf​(int num,
                      T... src)
        Ctor.
        Parameters:
        num - Number of head elements
        src - The underlying iterable
      • HeadOf

        public HeadOf​(int num,
                      Iterable<? extends T> iterable)
        Ctor.
        Parameters:
        num - Number of head elements
        iterable - Decorated iterable