Class YearMonthRangeRandomizer

  • All Implemented Interfaces:
    Randomizer<java.time.YearMonth>

    public class YearMonthRangeRandomizer
    extends AbstractRangeRandomizer<java.time.YearMonth>
    Generate a random YearMonth in the given range.
    • Constructor Detail

      • YearMonthRangeRandomizer

        public YearMonthRangeRandomizer​(java.time.YearMonth min,
                                        java.time.YearMonth max)
        Parameters:
        min - min value (inclusive)
        max - max value (exclusive)
      • YearMonthRangeRandomizer

        public YearMonthRangeRandomizer​(java.time.YearMonth min,
                                        java.time.YearMonth max,
                                        long seed)
        Parameters:
        min - min value (inclusive)
        max - max value (exclusive)
        seed - initial seed
    • Method Detail

      • getRandomValue

        public java.time.YearMonth getRandomValue()
        Description copied from interface: Randomizer
        Generate a random value for the given type.
        Returns:
        a random value for the given type