- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.UuidFactory.Parameters
-
- Enclosing class:
- UuidFactory
public static class UuidFactory.Parameters extends Object
Parameters object to be used with aUuidFactory.create(Parameters).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUuidFactory.Parameters.BuilderParameters builder.
-
Constructor Summary
Constructors Constructor Description Parameters(UuidFactory.Parameters.Builder builder)Constructor using a builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UuidFactory.Parameters.Builderbuilder()Returns a new builder.InstantgetInstant()bytegetLocalDomain()Get the local domain.intgetLocalIdentifier()Get the local identifier.byte[]getName()Get the name bytes.byte[]getNamespace()Get the name space bytes.
-
-
-
Constructor Detail
-
Parameters
public Parameters(UuidFactory.Parameters.Builder builder)
Constructor using a builder.- Parameters:
builder- a builder
-
-
Method Detail
-
getInstant
public Instant getInstant()
-
getNamespace
public byte[] getNamespace()
Get the name space bytes.- Returns:
- a byte array
-
getName
public byte[] getName()
Get the name bytes.- Returns:
- a byte array
-
getLocalDomain
public byte getLocalDomain()
Get the local domain.- Returns:
- the local domain
-
getLocalIdentifier
public int getLocalIdentifier()
Get the local identifier.- Returns:
- the local identifier
-
builder
public static UuidFactory.Parameters.Builder builder()
Returns a new builder.- Returns:
- a builder
-
-