Class DefaultPromptReference.Builder
java.lang.Object
de.xima.fc.prompt.mgmt.defaults.DefaultPromptReference.Builder
- Enclosing class:
DefaultPromptReference
A builder for
DefaultPromptReference.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new prompt reference with the current settings.displayName(Function<? super Locale, ? extends String> displayName) Sets the localized display name.Sets the unique identifier of thistypeof reference, such as a UUID or database ID.Sets the type of the reference, such as a type string orClass.
-
Method Details
-
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
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
Sets the type of the reference, such as a type string orClass.- Parameters:
type- The type of the reference.- Returns:
- The builder.
-