Class ViewArguments.Builder
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.service.ViewArguments.Builder
- Enclosing class:
- ViewArguments
Mutable accumulator for
ViewArguments.-
Method Summary
Modifier and TypeMethodDescription@NotNull ViewArgumentsbuild()Builds an immutable snapshot of the accumulated entries.@NotNull ViewArguments.BuilderAdds an entry, replacing any previous value for the same key.
-
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 keyvalue- the entry value- Returns:
- this builder
-
build
Builds an immutable snapshot of the accumulated entries.- Returns:
- the immutable arguments
-