Class TSID.Factory.ByteRandom

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.IntFunction<byte[]> randomFunction  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteRandom()  
      ByteRandom​(java.util.function.IntFunction<byte[]> randomFunction)  
      ByteRandom​(java.util.Random random)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.util.function.IntFunction<byte[]> 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.IntFunction<byte[]> randomFunction
    • Constructor Detail

      • ByteRandom

        public ByteRandom()
      • ByteRandom

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

        public ByteRandom​(java.util.function.IntFunction<byte[]> randomFunction)
    • Method Detail

      • newRandomFunction

        protected static java.util.function.IntFunction<byte[]> newRandomFunction​(java.util.Random random)