Class DataSampler

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.Integer>, java.util.Iterator<java.lang.Integer>

    public class DataSampler
    extends SelfIterator<java.lang.Integer>
    • Constructor Summary

      Constructors 
      Constructor Description
      DataSampler​(int dataSize)  
      DataSampler​(int sampleSize, int dataSize, java.util.function.IntFunction<java.lang.Boolean> include)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.Integer next()  
      • 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
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • DataSampler

        public DataSampler​(int dataSize)
      • DataSampler

        public DataSampler​(int sampleSize,
                           int dataSize,
                           java.util.function.IntFunction<java.lang.Boolean> include)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public java.lang.Integer next()