V - Value typepublic class NameMultimap<V> extends Object
| Modifier and Type | Field and Description |
|---|---|
private NavigableMap<String,List<V>> |
map |
| Modifier | Constructor and Description |
|---|---|
|
NameMultimap()
Creates a NameMultimap, initially empty.
|
private |
NameMultimap(NavigableMap<String,List<V>> map)
Creates a NameMultimap based on an existing map.
|
| 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.
|
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.
|
private final NavigableMap<String,List<V>> map
private NameMultimap(NavigableMap<String,List<V>> map)
public NameMultimap()
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–2018 The Apache Software Foundation. All rights reserved.