Package smile.hash
Class PerfectMap.Builder<T>
java.lang.Object
smile.hash.PerfectMap.Builder<T>
- Type Parameters:
T
- the data type of set objects.
- Enclosing class:
PerfectMap<T>
The builder of perfect map.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Constructor. -
Builder
Constructor.- Parameters:
map
- the initialization map.
-
-
Method Details
-
add
Add a new key-value pair.- Parameters:
key
- the key.value
- the value.- Returns:
- this builder.
-
build
Builds the perfect map.- Returns:
- the perfect map.
-