Package com.sun.javatest.util
Class PrefixMap<V>
java.lang.Object
com.sun.javatest.util.PrefixMap<V>
A map whose entries are stored in a parent map by prefixing
the key names with a specific string.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
PrefixMap
Create a map whose entries are stored in a parent map by prefixing the key names with a specific string.- Parameters:
map
- the parent mapprefix
- the prefix with which to prefix the entries in the parent map
-
-
Method Details
-
clear
public void clear() -
getPrefix
Get the prefix that this map is applying. This is the value that was supplied to the constructor. This class reserves the right to return a String which is not reference equivalent to the given string.- Returns:
- The prefix string, which may be a zero length string.
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
V>
-
entrySet
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-