Package de.xima.fc.prompt.mgmt.defaults
Class DefaultPromptReference.Builder
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.defaults.DefaultPromptReference.Builder
-
- Enclosing class:
- DefaultPromptReference
public static final class DefaultPromptReference.Builder extends Object
A builder forDefaultPromptReference.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPromptReferencebuild()Builds a new prompt reference with the current settings.DefaultPromptReference.BuilderdisplayName(Function<? super Locale,? extends String> displayName)Sets the localized display name.DefaultPromptReference.Builderid(Object id)Sets the unique identifier of thistypeof reference, such as a UUID or database ID.DefaultPromptReference.Buildertype(Object type)Sets the type of the reference, such as a type string orClass.
-
-
-
Method Detail
-
build
public IPromptReference build()
Builds a new prompt reference with the current settings.- Returns:
- The built instance.
-
displayName
public DefaultPromptReference.Builder displayName(Function<? super Locale,? extends String> displayName)
Sets the localized display name.- Parameters:
displayName- The display name.- Returns:
- The builder.
-
id
public DefaultPromptReference.Builder id(Object id)
Sets the unique identifier of thistypeof reference, such as a UUID or database ID.- Parameters:
id- The unique identifier of the reference.- Returns:
- The unique identifier of the reference.
-
type
public DefaultPromptReference.Builder type(Object type)
Sets the type of the reference, such as a type string orClass.- Parameters:
type- The type of the reference.- Returns:
- The builder.
-
-