V - Value typepublic class NameMap<V> extends Object
| Modifier and Type | Field and Description |
|---|---|
private NavigableMap<String,V> |
map |
| Modifier | Constructor and Description |
|---|---|
|
NameMap()
Creates a NameMap, initially empty.
|
private |
NameMap(NavigableMap<String,V> map)
Creates a NameSet based on an existing set.
|
| 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.
|
static <V> NameMap |
immutableCopyOf(Map<String,V> names)
Creates a NameMap that is an immutable copy of a given map.
|
NavigableMap<String,V> |
map()
Returns the underlying map.
|
void |
put(String name,
V v) |
NavigableMap<String,V> |
range(String name,
boolean caseSensitive)
Returns a map containing all the entries in the map that match the given
name.
|
V |
remove(String key) |
private final NavigableMap<String,V> map
private NameMap(NavigableMap<String,V> map)
public NameMap()
public static <V> NameMap immutableCopyOf(Map<String,V> names)
public NavigableMap<String,V> range(String name, boolean caseSensitive)
public boolean containsKey(String name, boolean caseSensitive)
public NavigableMap<String,V> map()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.