Class TSID.Factory.IntRandom

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.IntSupplier randomFunction  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntRandom()  
      IntRandom​(java.util.function.IntSupplier randomFunction)  
      IntRandom​(java.util.Random random)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.util.function.IntSupplier newRandomFunction​(java.util.Random random)  
      byte[] nextBytes​(int length)  
      int nextInt()  
      • Methods inherited from class java.lang.Object

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

      • randomFunction

        private final java.util.function.IntSupplier randomFunction
    • Constructor Detail

      • IntRandom

        public IntRandom()
      • IntRandom

        public IntRandom​(java.util.Random random)
      • IntRandom

        public IntRandom​(java.util.function.IntSupplier randomFunction)
    • Method Detail

      • newRandomFunction

        protected static java.util.function.IntSupplier newRandomFunction​(java.util.Random random)