public class ByteRangeRandomizer extends AbstractRandomizer<T>
Byte
in the given range.random
Constructor and Description |
---|
ByteRangeRandomizer(Byte min,
Byte max)
Create a new
ByteRangeRandomizer . |
ByteRangeRandomizer(Byte min,
Byte max,
long seed)
Create a new
ByteRangeRandomizer . |
Modifier and Type | Method and Description |
---|---|
static ByteRangeRandomizer |
aNewByteRangeRandomizer(Byte min,
Byte max)
Create a new
ByteRangeRandomizer . |
static ByteRangeRandomizer |
aNewByteRangeRandomizer(Byte min,
Byte max,
long seed)
Create a new
ByteRangeRandomizer . |
protected void |
checkValues() |
protected Byte |
getDefaultMaxValue() |
protected Byte |
getDefaultMinValue() |
Byte |
getRandomValue()
Generate a random value for the given type.
|
getPredefinedValuesOf, toString
public ByteRangeRandomizer(Byte min, Byte max)
ByteRangeRandomizer
.min
- min valuemax
- max valuepublic ByteRangeRandomizer(Byte min, Byte max, long seed)
ByteRangeRandomizer
.min
- min valuemax
- max valueseed
- initial seedpublic static ByteRangeRandomizer aNewByteRangeRandomizer(Byte min, Byte max)
ByteRangeRandomizer
.min
- min valuemax
- max valueByteRangeRandomizer
.public static ByteRangeRandomizer aNewByteRangeRandomizer(Byte min, Byte max, long seed)
ByteRangeRandomizer
.min
- min valuemax
- max valueseed
- initial seedByteRangeRandomizer
.protected void checkValues()
public Byte getRandomValue()
Randomizer
protected Byte getDefaultMaxValue()
protected Byte getDefaultMinValue()
Copyright © 2016. All Rights Reserved.