Class InstantRangeRandomizer

java.lang.Object
org.jeasy.random.randomizers.AbstractRandomizer<T>
org.jeasy.random.randomizers.range.AbstractRangeRandomizer<java.time.Instant>
org.jeasy.random.randomizers.range.InstantRangeRandomizer
All Implemented Interfaces:
Randomizer<java.time.Instant>

public class InstantRangeRandomizer extends AbstractRangeRandomizer<java.time.Instant>
  • Constructor Details

    • InstantRangeRandomizer

      public InstantRangeRandomizer(java.time.Instant min, java.time.Instant max)
      Parameters:
      min - min value (inclusive)
      max - max value (exclusive)
    • InstantRangeRandomizer

      public InstantRangeRandomizer(java.time.Instant min, java.time.Instant 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.Instant>
    • getDefaultMinValue

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

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

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