-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIndex.Mutable.Builder<V>Builder ofIndex.Mutableinstances.-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Index
Index.Mutable<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Remove all entries from the index.booleanput(java.lang.String s, V v)Put an entry into the index.booleanput(V v)Put a value as both a key and a value.Vremove(java.lang.String s)Remove an entry from the index.
-
-
-
Method Detail
-
put
boolean put(java.lang.String s, V v)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
boolean put(V v)
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
V remove(java.lang.String s)
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.
-
-