Module com.github.f4b6a3.uuid
Package com.github.f4b6a3.uuid.factory
Class AbstRandomBasedFactory.ByteRandom
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.AbstRandomBasedFactory.ByteRandom
-
- All Implemented Interfaces:
AbstRandomBasedFactory.IRandom
- Enclosing class:
- AbstRandomBasedFactory
protected static final class AbstRandomBasedFactory.ByteRandom extends Object implements AbstRandomBasedFactory.IRandom
-
-
Constructor Summary
Constructors Constructor Description ByteRandom()ByteRandom(IntFunction<byte[]> randomFunction)ByteRandom(Random random)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static IntFunction<byte[]>newRandomFunction(Random random)byte[]nextBytes(int length)longnextLong()
-
-
-
Constructor Detail
-
ByteRandom
public ByteRandom()
-
ByteRandom
public ByteRandom(Random random)
-
ByteRandom
public ByteRandom(IntFunction<byte[]> randomFunction)
-
-
Method Detail
-
nextLong
public long nextLong()
- Specified by:
nextLongin interfaceAbstRandomBasedFactory.IRandom
-
nextBytes
public byte[] nextBytes(int length)
- Specified by:
nextBytesin interfaceAbstRandomBasedFactory.IRandom
-
newRandomFunction
protected static IntFunction<byte[]> newRandomFunction(Random random)
-
-