Class OffsetTimeRangeRandomizer
- java.lang.Object
-
- org.jeasy.random.randomizers.AbstractRandomizer<T>
-
- org.jeasy.random.randomizers.range.AbstractRangeRandomizer<java.time.OffsetTime>
-
- org.jeasy.random.randomizers.range.OffsetTimeRangeRandomizer
-
- All Implemented Interfaces:
Randomizer<java.time.OffsetTime>
public class OffsetTimeRangeRandomizer extends AbstractRangeRandomizer<java.time.OffsetTime>
Generate a randomOffsetTimein the given range.
-
-
Field Summary
-
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random
-
-
Constructor Summary
Constructors Constructor Description OffsetTimeRangeRandomizer(java.time.OffsetTime min, java.time.OffsetTime max)Create a newOffsetTimeRangeRandomizer.OffsetTimeRangeRandomizer(java.time.OffsetTime min, java.time.OffsetTime max, long seed)Create a newOffsetTimeRangeRandomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckValues()protected java.time.OffsetTimegetDefaultMaxValue()protected java.time.OffsetTimegetDefaultMinValue()java.time.OffsetTimegetRandomValue()Generate a random value for the given type.-
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
-
-
-
Constructor Detail
-
OffsetTimeRangeRandomizer
public OffsetTimeRangeRandomizer(java.time.OffsetTime min, java.time.OffsetTime max)Create a newOffsetTimeRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)
-
OffsetTimeRangeRandomizer
public OffsetTimeRangeRandomizer(java.time.OffsetTime min, java.time.OffsetTime max, long seed)Create a newOffsetTimeRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)seed- initial seed
-
-
Method Detail
-
checkValues
protected void checkValues()
- Specified by:
checkValuesin classAbstractRangeRandomizer<java.time.OffsetTime>
-
getDefaultMinValue
protected java.time.OffsetTime getDefaultMinValue()
- Specified by:
getDefaultMinValuein classAbstractRangeRandomizer<java.time.OffsetTime>
-
getDefaultMaxValue
protected java.time.OffsetTime getDefaultMaxValue()
- Specified by:
getDefaultMaxValuein classAbstractRangeRandomizer<java.time.OffsetTime>
-
getRandomValue
public java.time.OffsetTime getRandomValue()
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
-