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