Interface Index.Mutable<V>
- Type Parameters:
V- the entry type
- All Superinterfaces:
Index<V>
A mutable String lookup data structure.
Implementations are not thread-safe.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Index
Index.Mutable<V> -
Method Summary
-
Method Details
-
put
Put an entry into the index.- Parameters:
s- The key for the entry. Must be non null, but can be empty.v- The value of the entry. A null value acts as aremove(String).- Returns:
- True if the index had capacity to add the field.
-
put
Put a value as both a key and a value.- Parameters:
v- The value and key- Returns:
- True if the Trie had capacity to add the field.
-
remove
-
clear
void clear()Remove all entries from the index.
-