Package com.coti.tools
Class RandomDate
- java.lang.Object
-
- com.coti.tools.RandomDate
-
public class RandomDate extends java.lang.Object
Class RandomDate generates random a random LocalDate between two given ones;
methods are not static hence an instance of RandomDate must be created before
using the one method in this class, nextDate().
-
-
Constructor Summary
Constructors Constructor Description RandomDate(java.time.LocalDate minDate, java.time.LocalDate maxDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDate
nextDate()
java.lang.String
toString()
-
-
-
Constructor Detail
-
RandomDate
public RandomDate(java.time.LocalDate minDate, java.time.LocalDate maxDate)
- Parameters:
minDate
- - The minimum date of the segment inside which instances of
RandomDate are to be produced.maxDate
- - The maximum date of the segment inside which instances of
RandomDate are to be produced.
-
-