public abstract class AbstRandomBasedFactory extends UuidFactory
RandomFunction| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstRandomBasedFactory.Builder<T,B extends AbstRandomBasedFactory.Builder<T,B>>
Abstract builder for creating a random-based factory.
|
protected static class |
AbstRandomBasedFactory.FastRandom
A long random generator.
|
protected static interface |
AbstRandomBasedFactory.IRandom
Interface for random generator.
|
protected static class |
AbstRandomBasedFactory.SafeRandom
A byte random generator.
|
UuidFactory.Parameters| Modifier and Type | Field and Description |
|---|---|
protected ReentrantLock |
lock
The reentrant lock for synchronization.
|
protected AbstRandomBasedFactory.IRandom |
random
The random generator.
|
protected static int |
UUID_BYTES
The number of bytes of a UUID.
|
version, versionMask| Modifier | Constructor and Description |
|---|---|
protected |
AbstRandomBasedFactory(UuidVersion version,
AbstRandomBasedFactory.Builder<?,?> builder)
Constructor with a version number and a builder
|
| Modifier and Type | Method and Description |
|---|---|
UUID |
create(UuidFactory.Parameters parameters)
Creates a UUID using parameters.
|
create, getVersion, nameBytes, nameBytes, namespaceBytes, namespaceBytes, namespaceBytes, toUuidprotected final AbstRandomBasedFactory.IRandom random
protected static final int UUID_BYTES
protected final ReentrantLock lock
protected AbstRandomBasedFactory(UuidVersion version, AbstRandomBasedFactory.Builder<?,?> builder)
version - a version numberbuilder - a builderpublic UUID create(UuidFactory.Parameters parameters)
UuidFactorycreate in class UuidFactoryparameters - parameters objectCopyright © 2024. All rights reserved.