Package com.google.mu.collect
Class PrefixSearchTable.Builder<K,V>
java.lang.Object
com.google.mu.collect.PrefixSearchTable.Builder<K,V>
- Enclosing class:
PrefixSearchTable<K,
V>
Builder of
PrefixSearchTable
.-
Method Summary
Modifier and TypeMethodDescriptionAdds the mapping fromcompoundKey
tovalue
.Adds all ofmappings
into this builder.build()
-
Method Details
-
add
Adds the mapping fromcompoundKey
tovalue
.- Returns:
- this builder
- Throws:
IllegalArgumentException
- ifcompoundKey
is empty, or it has already been mapped to a value that's not equal tovalue
.NullPointerException
- ifcompoundKey
is null, any of the key element is null orvalue
is null
-
addAll
Adds all ofmappings
into this builder.- Since:
- 8.0
-
build
-