Class UuidFactory
java.lang.Object
io.fluxzero.sdk.common.UuidFactory
- All Implemented Interfaces:
IdentityProvider
Default implementation of
IdentityProvider that generates random UUIDs.
Optionally removes dashes from the UUID to produce a more compact identifier.
Example Output
61f3c6d26c9c42d3b56b4c0a7e34c939(ifremoveDashes = true)61f3c6d2-6c9c-42d3-b56b-4c0a7e34c939(ifremoveDashes = false)
-
Field Summary
Fields inherited from interface IdentityProvider
defaultIdentityProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new UUID string, optionally stripped of dashes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IdentityProvider
nextTechnicalId
-
Constructor Details
-
UuidFactory
public UuidFactory()Creates aUuidFactorythat removes dashes (default behavior).
-
-
Method Details
-
nextFunctionalId
Returns a new UUID string, optionally stripped of dashes.- Specified by:
nextFunctionalIdin interfaceIdentityProvider- Returns:
- a unique identifier string
-