Class SkipRandomizer

  • All Implemented Interfaces:
    io.github.krandom.api.Randomizer

    
    public class SkipRandomizer
     implements Randomizer<T>
                        

    A randomizer used to skip fields from being populated. This is an implementation of the Null Object Pattern

    Author:

    Mahmoud Ben Hassine ([email protected])

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SkipRandomizer()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Object 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

      • SkipRandomizer

        SkipRandomizer()
    • Method Detail

      • getRandomValue

         Object getRandomValue()

        Generate a random value for the given type.

        Returns:

        a random value for the given type