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