Package io.scanbot.sdk.utils
Class MapBuilder<K,V>
java.lang.Object
io.scanbot.sdk.utils.MapBuilder<K,V>
- Type Parameters:
K- Key typeV- Value type
Helper class to build HashMaps in a builder pattern style.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapBuilder
public MapBuilder()
-
-
Method Details
-
put
Puts a key-value pair into the map.- Parameters:
key- keyvalue- value- Returns:
- The builder instance
-
build
Builds the map.- Returns:
- The built map
-