Class InstantRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<Instant>
org.jeasy.random.randomizers.range.InstantRangeRandomizer
- All Implemented Interfaces:
Randomizer<Instant>
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionInstantRangeRandomizer(Instant min, Instant max) Create a newInstantRangeRandomizer.InstantRangeRandomizer(Instant min, Instant max, long seed) Create a newInstantRangeRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
InstantRangeRandomizer
Create a newInstantRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)
-
InstantRangeRandomizer
Create a newInstantRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)seed- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValuesin classAbstractRangeRandomizer<Instant>
-
getDefaultMinValue
- Specified by:
getDefaultMinValuein classAbstractRangeRandomizer<Instant>
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValuein classAbstractRangeRandomizer<Instant>
-
getRandomValue
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-