Module com.github.f4b6a3.uuid
Package com.github.f4b6a3.uuid.factory
Class AbstRandomBasedFactory.LongRandom
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.AbstRandomBasedFactory.LongRandom
-
- All Implemented Interfaces:
AbstRandomBasedFactory.IRandom
- Enclosing class:
- AbstRandomBasedFactory
protected static final class AbstRandomBasedFactory.LongRandom extends Object implements AbstRandomBasedFactory.IRandom
-
-
Constructor Summary
Constructors Constructor Description LongRandom()LongRandom(LongSupplier randomFunction)LongRandom(Random random)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static LongSuppliernewRandomFunction(Random random)byte[]nextBytes(int length)longnextLong()
-
-
-
Constructor Detail
-
LongRandom
public LongRandom()
-
LongRandom
public LongRandom(Random random)
-
LongRandom
public LongRandom(LongSupplier 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 LongSupplier newRandomFunction(Random random)
-
-