- java.lang.Object
-
- com.github.f4b6a3.ulid.UlidFactory.LongRandom
-
- All Implemented Interfaces:
UlidFactory.IRandom
- Enclosing class:
- UlidFactory
protected static class UlidFactory.LongRandom extends Object implements UlidFactory.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 interfaceUlidFactory.IRandom
-
nextBytes
public byte[] nextBytes(int length)
- Specified by:
nextBytesin interfaceUlidFactory.IRandom
-
newRandomFunction
protected static LongSupplier newRandomFunction(Random random)
-
-