Package org.eclipse.jetty.util
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 classes/interfaces inherited from interface org.eclipse.jetty.util.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. Must be non null.- 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
Remove an entry from the index.- Parameters:
s
- The key for the entry- Returns:
- The removed value of the entry
-
clear
void clear()Remove all entries from the index.
-