Module com.github.f4b6a3.uuid
Package com.github.f4b6a3.uuid.factory
Class AbstRandomBasedFactory.Builder<T,B extends AbstRandomBasedFactory.Builder<T,B>>
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.AbstRandomBasedFactory.Builder<T,B>
-
- Type Parameters:
T- factory typeB- builder type
- Direct Known Subclasses:
AbstCombFactory.Builder,RandomBasedFactory.Builder
- Enclosing class:
- AbstRandomBasedFactory
protected abstract static class AbstRandomBasedFactory.Builder<T,B extends AbstRandomBasedFactory.Builder<T,B>> extends Object
Abstract builder for creating a random-based factory.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstRandomBasedFactory.IRandomrandom
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tbuild()protected AbstRandomBasedFactory.IRandomgetRandom()BwithFastRandom()BwithRandom(Random random)BwithRandomFunction(IntFunction<byte[]> randomFunction)BwithRandomFunction(LongSupplier randomFunction)
-
-
-
Field Detail
-
random
protected AbstRandomBasedFactory.IRandom random
-
-
Method Detail
-
getRandom
protected AbstRandomBasedFactory.IRandom getRandom()
-
withFastRandom
public B withFastRandom()
-
withRandomFunction
public B withRandomFunction(LongSupplier randomFunction)
-
withRandomFunction
public B withRandomFunction(IntFunction<byte[]> randomFunction)
-
build
public abstract T build()
-
-