Package net.andreinc.mockneat.unit.types
Class Primes
java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.types.Primes
- All Implemented Interfaces:
MockUnit<java.lang.Integer>,MockUnitInt
public class Primes extends MockUnitBase implements MockUnitInt
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static Primesprimes()Returns aPrimesobject that can be used to generate prime numbers (small)MockUnitIntsmallPrimes()java.util.function.Supplier<java.lang.Integer>supplier()This is the sole abstract method of the interface.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, val, val, valStr, valStrMethods inherited from interface net.andreinc.mockneat.abstraction.MockUnitInt
array, arrayPrimitive, intStream
-
Constructor Details
-
Method Details
-
primes
Returns a
Primesobject that can be used to generate prime numbers (small)The primes are only generated in this interval [0, 7919]
- Returns:
- A re-usable
Primesobject. ThePrimesclass implementsMockUnitInt
-
smallPrimes
-
supplier
public java.util.function.Supplier<java.lang.Integer> supplier()Description copied from interface:MockUnitThis is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
-