V - Value typepublic class NameMultimap<V> extends Object
| Constructor and Description |
|---|
NameMultimap()
Creates a NameMultimap, initially empty.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String name,
boolean caseSensitive)
Returns whether this map contains a given key, with a given
case-sensitivity.
|
boolean |
equals(@Nullable Object obj) |
int |
hashCode() |
NavigableMap<String,List<V>> |
map()
Returns the underlying map.
|
void |
put(String name,
V v)
Adds an entry to this multimap.
|
Collection<Map.Entry<String,V>> |
range(String name,
boolean caseSensitive)
Returns a map containing all the entries in this multimap that match the
given name.
|
boolean |
remove(String key,
V value)
Removes all entries that have the given case-sensitive key.
|
String |
toString() |
public boolean remove(String key, V value)
public Collection<Map.Entry<String,V>> range(String name, boolean caseSensitive)
public boolean containsKey(String name, boolean caseSensitive)
public NavigableMap<String,List<V>> map()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.