Class MinuteRandomizer

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

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

      Fields 
      Modifier and Type Field Description
      static int MAX_MINUTE  
      static int MIN_MINUTE  
    • 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

      • MinuteRandomizer

        public MinuteRandomizer()
      • MinuteRandomizer

        public MinuteRandomizer​(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