Class ViewArguments.Builder

java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.service.ViewArguments.Builder
Enclosing class:
ViewArguments

public static final class ViewArguments.Builder extends Object
Mutable accumulator for ViewArguments.
  • Method Details

    • put

      @NotNull public @NotNull ViewArguments.Builder put(@NotNull @NotNull String key, @NotNull @NotNull Object value)
      Adds an entry, replacing any previous value for the same key.
      Parameters:
      key - the entry key
      value - the entry value
      Returns:
      this builder
    • build

      @NotNull public @NotNull ViewArguments build()
      Builds an immutable snapshot of the accumulated entries.
      Returns:
      the immutable arguments