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
-
Fields inherited from class net.andreinc.mockneat.abstraction.MockUnitBase
mockNeat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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, wait
-
Methods 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, valStr
-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnitInt
array, arrayPrimitive, intStream
-
-
-
-
Constructor Detail
-
Primes
public Primes(MockNeat mockNeat)
-
-
Method Detail
-
primes
public static Primes 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
public MockUnitInt 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.
-
-