Class ListNumberGenerator

java.lang.Object
ListNumberGenerator
All Implemented Interfaces:
NumberGenerator

public class ListNumberGenerator
extends java.lang.Object
implements NumberGenerator
Produces deterministic numbers by iterating repeatedly over a List or Integer[] argued in the constructors.
  • Constructor Summary

    Constructors 
    Constructor Description
    ListNumberGenerator​(java.lang.Integer[] arr)  
    ListNumberGenerator​(java.util.List<java.lang.Integer> list)  
  • Method Summary

    Modifier and Type Method Description
    int next()  
    int next​(int bound)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait