Class YearMonthRangeRandomizer

java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<java.time.YearMonth>
org.jeasy.random.randomizers.range.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 Details

    • 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 Details

    • checkValues

      protected void checkValues()
      Specified by:
      checkValues in class AbstractRangeRandomizer<java.time.YearMonth>
    • getDefaultMinValue

      protected java.time.YearMonth getDefaultMinValue()
      Specified by:
      getDefaultMinValue in class AbstractRangeRandomizer<java.time.YearMonth>
    • getDefaultMaxValue

      protected java.time.YearMonth getDefaultMaxValue()
      Specified by:
      getDefaultMaxValue in class AbstractRangeRandomizer<java.time.YearMonth>
    • 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