Class GeneratorIterable<K>

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

    public class GeneratorIterable<K>
    extends java.lang.Object
    implements java.lang.Iterable<K>
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneratorIterable​(java.util.function.Function<java.lang.Integer,​K> generator, int startId, int limit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<K> iterator()  
      • 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

      • GeneratorIterable

        public GeneratorIterable​(java.util.function.Function<java.lang.Integer,​K> generator,
                                 int startId,
                                 int limit)
    • Method Detail

      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<K>