Class Sticky<X>

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

    public final class Sticky<X>
    extends IterableEnvelope<X>
    Iterable that returns the same set of elements, always.

    There is no thread-safety guarantee.

    Since:
    0.1
    • Constructor Detail

      • Sticky

        @SafeVarargs
        public Sticky​(X... src)
        Ctor.
        Parameters:
        src - The underlying iterable
      • Sticky

        public Sticky​(Iterable<? extends X> iterable)
        Ctor.
        Parameters:
        iterable - The iterable