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
-
Constructor Details
-
ListNumberGenerator
public ListNumberGenerator(java.util.List<java.lang.Integer> list) -
ListNumberGenerator
public ListNumberGenerator(java.lang.Integer[] arr)
-
-
Method Details
-
next
public int next() -
next
public int next(int bound)- Specified by:
next
in interfaceNumberGenerator
-