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 for DefaultPromptReference.
Since:
8.5.0
  • Method Details

    • 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

      Sets the unique identifier of this type of 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 or Class.
      Parameters:
      type - The type of the reference.
      Returns:
      The builder.