Module com.github.f4b6a3.uuid
Package com.github.f4b6a3.uuid.factory
Class UuidFactory.Parameters.Builder
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.UuidFactory.Parameters.Builder
-
- Enclosing class:
- UuidFactory.Parameters
public static class UuidFactory.Parameters.Builder extends Object
Parameters builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UuidFactory.Parametersbuild()Finishes the parameters build.UuidFactory.Parameters.BuilderwithInstant(Instant instant)Use the instant provided.UuidFactory.Parameters.BuilderwithLocalDomain(byte localDomain)Use the local domain.UuidFactory.Parameters.BuilderwithLocalDomain(UuidLocalDomain localDomain)Use the local domain.UuidFactory.Parameters.BuilderwithLocalIdentifier(int localIdentifier)Use the local identifier.UuidFactory.Parameters.BuilderwithName(byte[] name)Use the name byte array.UuidFactory.Parameters.BuilderwithName(String name)Use the name string.UuidFactory.Parameters.BuilderwithNamespace(UuidNamespace namespace)Use the name space enum.UuidFactory.Parameters.BuilderwithNamespace(String namespace)Use the name space string.UuidFactory.Parameters.BuilderwithNamespace(UUID namespace)Use the name space UUID.
-
-
-
Method Detail
-
withInstant
public UuidFactory.Parameters.Builder withInstant(Instant instant)
Use the instant provided.- Parameters:
instant- an instant- Returns:
- the builder
-
withNamespace
public UuidFactory.Parameters.Builder withNamespace(UUID namespace)
Use the name space UUID.- Parameters:
namespace- a name space- Returns:
- the builder
-
withNamespace
public UuidFactory.Parameters.Builder withNamespace(String namespace)
Use the name space string.- Parameters:
namespace- a name space- Returns:
- the builder
-
withNamespace
public UuidFactory.Parameters.Builder withNamespace(UuidNamespace namespace)
Use the name space enum.- Parameters:
namespace- a name space- Returns:
- the builder
-
withName
public UuidFactory.Parameters.Builder withName(byte[] name)
Use the name byte array. It makes a copy of the input byte array.- Parameters:
name- a name- Returns:
- the builder
-
withName
public UuidFactory.Parameters.Builder withName(String name)
Use the name string. The string is encoded into UTF-8 byte array.- Parameters:
name- a name- Returns:
- the builder
-
withLocalDomain
public UuidFactory.Parameters.Builder withLocalDomain(UuidLocalDomain localDomain)
Use the local domain.- Parameters:
localDomain- the local domain- Returns:
- the builder
-
withLocalDomain
public UuidFactory.Parameters.Builder withLocalDomain(byte localDomain)
Use the local domain.- Parameters:
localDomain- the local domain- Returns:
- the builder
-
withLocalIdentifier
public UuidFactory.Parameters.Builder withLocalIdentifier(int localIdentifier)
Use the local identifier.- Parameters:
localIdentifier- the local identifier- Returns:
- the builder
-
build
public UuidFactory.Parameters build()
Finishes the parameters build.- Returns:
- the build parameters.
-
-