Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.
    • Method Detail

      • nextDate

        public java.time.LocalDate nextDate()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object