Class First<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>

    public final class First<T>
    extends DelegatingIterable<T>
    An Iterable decorator which returns only the first few elements of the delegate.
    • Constructor Summary

      Constructors 
      Constructor Description
      First​(int limit, java.lang.Iterable<T> delegate)  
      First​(int limit, Generatable<T> delegate)  
      First​(java.lang.Iterable<T> delegate)  
      First​(Generatable<T> delegate)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • First

        public First​(java.lang.Iterable<T> delegate)
      • First

        public First​(int limit,
                     Generatable<T> delegate)
      • First

        public First​(int limit,
                     java.lang.Iterable<T> delegate)