Class ByteRangeRandomizer
java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<Byte>
org.jeasy.random.randomizers.range.ByteRangeRandomizer
- All Implemented Interfaces:
Randomizer<Byte>
Generate a random
Byte in the given range.- Author:
- Rémi Alvergnat ([email protected])
-
Field Summary
Fields inherited from class org.jeasy.random.randomizers.AbstractRandomizer
random -
Constructor Summary
ConstructorsConstructorDescriptionByteRangeRandomizer(Byte min, Byte max) Create a newByteRangeRandomizer.ByteRangeRandomizer(Byte min, Byte max, long seed) Create a newByteRangeRandomizer. -
Method Summary
Methods inherited from class org.jeasy.random.randomizers.AbstractRandomizer
getPredefinedValuesOf, nextDouble, toString
-
Constructor Details
-
ByteRangeRandomizer
Create a newByteRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)
-
ByteRangeRandomizer
Create a newByteRangeRandomizer.- Parameters:
min- min value (inclusive)max- max value (exclusive)seed- initial seed
-
-
Method Details
-
checkValues
protected void checkValues()- Specified by:
checkValuesin classAbstractRangeRandomizer<Byte>
-
getRandomValue
Description copied from interface:RandomizerGenerate a random value for the given type.- Returns:
- a random value for the given type
-
getDefaultMaxValue
- Specified by:
getDefaultMaxValuein classAbstractRangeRandomizer<Byte>
-
getDefaultMinValue
- Specified by:
getDefaultMinValuein classAbstractRangeRandomizer<Byte>
-