Package io.hypersistence.tsid
Class TSID.Factory.IntRandom
- java.lang.Object
-
- io.hypersistence.tsid.TSID.Factory.IntRandom
-
- All Implemented Interfaces:
TSID.Factory.IRandom
- Enclosing class:
- TSID.Factory
static class TSID.Factory.IntRandom extends java.lang.Object implements TSID.Factory.IRandom
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.IntSupplierrandomFunction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.util.function.IntSuppliernewRandomFunction(java.util.Random random)byte[]nextBytes(int length)intnextInt()
-
-
-
Method Detail
-
nextInt
public int nextInt()
- Specified by:
nextIntin interfaceTSID.Factory.IRandom
-
nextBytes
public byte[] nextBytes(int length)
- Specified by:
nextBytesin interfaceTSID.Factory.IRandom
-
newRandomFunction
protected static java.util.function.IntSupplier newRandomFunction(java.util.Random random)
-
-