Class HourRandomizer

  • All Implemented Interfaces:
    Randomizer<java.lang.Integer>

    public class HourRandomizer
    extends java.lang.Object
    implements Randomizer<java.lang.Integer>
    A Randomizer that generates a random hour value between MIN_HOUR and MAX_HOUR.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_HOUR  
      static int MIN_HOUR  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getRandomValue()
      Generate a random value for the given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HourRandomizer

        public HourRandomizer()
      • HourRandomizer

        public HourRandomizer​(long seed)
    • Method Detail

      • getRandomValue

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