public class DateRangeRandomizer extends AbstractRandomizer<T>
Date in the given range.random| Constructor and Description |
|---|
DateRangeRandomizer(Date min,
Date max)
Create a new
DateRangeRandomizer. |
DateRangeRandomizer(Date min,
Date max,
long seed)
Create a new
DateRangeRandomizer. |
| Modifier and Type | Method and Description |
|---|---|
static DateRangeRandomizer |
aNewDateRangeRandomizer(Date min,
Date max)
Create a new
DateRangeRandomizer. |
static DateRangeRandomizer |
aNewDateRangeRandomizer(Date min,
Date max,
long seed)
Create a new
DateRangeRandomizer. |
protected void |
checkValues() |
protected Date |
getDefaultMaxValue() |
protected Date |
getDefaultMinValue() |
Date |
getRandomValue()
Generate a random value for the given type.
|
getPredefinedValuesOf, toStringpublic DateRangeRandomizer(Date min, Date max)
DateRangeRandomizer.min - min valuemax - max valuepublic DateRangeRandomizer(Date min, Date max, long seed)
DateRangeRandomizer.min - min valuemax - max valueseed - initial seedpublic static DateRangeRandomizer aNewDateRangeRandomizer(Date min, Date max)
DateRangeRandomizer.min - min valuemax - max valueDateRangeRandomizer.public static DateRangeRandomizer aNewDateRangeRandomizer(Date min, Date max, long seed)
DateRangeRandomizer.min - min valuemax - max valueseed - initial seedDateRangeRandomizer.protected void checkValues()
protected Date getDefaultMinValue()
protected Date getDefaultMaxValue()
public Date getRandomValue()
RandomizerCopyright © 2016. All Rights Reserved.