public class PrefixMap
extends java.lang.Object
implements java.util.Map
| Constructor and Description |
|---|
PrefixMap(java.util.Map map,
java.lang.String prefix)
Create a map whose entries are stored in a parent map
by prefixing the key names with a specific string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
java.lang.String |
getPrefix()
Get the prefix that this map is applying.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection |
values() |
public PrefixMap(java.util.Map map,
java.lang.String prefix)
map - the parent mapprefix - the prefix with which to prefix the entries in the
parent mappublic void clear()
clear in interface java.util.Mappublic java.lang.String getPrefix()
public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic void putAll(java.util.Map t)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.MapCopyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.