Class InstantRandomizer

java.lang.Object
org.jeasy.random.randomizers.time.InstantRandomizer
All Implemented Interfaces:
Randomizer<java.time.Instant>

public class InstantRandomizer extends Object implements Randomizer<java.time.Instant>
A Randomizer that generates random Instant.
Author:
Mahmoud Ben Hassine ([email protected])
  • Constructor Details

    • InstantRandomizer

      public InstantRandomizer()
      Create a new InstantRandomizer.
    • InstantRandomizer

      public InstantRandomizer(long seed)
      Create a new InstantRandomizer.
      Parameters:
      seed - initial seed
  • Method Details

    • getRandomValue

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