Class ThreadLocalRandomHandler


  • @ThreadSafe
    public final class ThreadLocalRandomHandler
    extends RandomHandler
    Implementation of the RandomHandler using ThreadLocalRandom.
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadLocalRandomHandler()
      Constructs a new ThreadLocalRandomHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Random current()
      Returns the current Random.
      • Methods inherited from class java.lang.Object

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

      • ThreadLocalRandomHandler

        public ThreadLocalRandomHandler()
        Constructs a new ThreadLocalRandomHandler.
    • Method Detail

      • current

        public java.util.Random current()
        Description copied from class: RandomHandler
        Returns the current Random.
        Specified by:
        current in class RandomHandler
        Returns:
        the current Random.