Interface OptionState.Builder

Enclosing interface:
OptionState

@NonExtendable public static interface OptionState.Builder
A builder for option states.
Since:
1.0.0
  • Method Details

    • value

      @NotNull <V> @NotNull OptionState.Builder value(@NotNull @NotNull Option<V> option, @NotNull V value)
      Set the value for a specific option.
      Type Parameters:
      V - the value type
      Parameters:
      option - the option to set the value for
      value - the value
      Returns:
      this builder
      Since:
      1.0.0
    • values

      @NotNull @NotNull OptionState.Builder values(@NotNull @NotNull OptionState existing)
      Apply all values from the existing option state.
      Parameters:
      existing - the existing state
      Returns:
      this builder
      Since:
      1.0.0
    • build

      @NotNull @NotNull OptionState build()
      Create a completed option state.
      Returns:
      the built state
      Since:
      1.0.0