|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hydrateframework.Assembler.PrefixMap
public static class Assembler.PrefixMap
An implementation of the map interface that behaves as if it contains a value for any key supplied that is the same as the key but with a specified prefix prepended to it. For example, if the prefix is "MyName.", the call prefixMap.get("MyKey") would return "MyName.MyKey".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
Assembler.PrefixMap(java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear has no meaning and does nothing in this implementation |
boolean |
containsKey(java.lang.Object key)
In effect this implementation contains all possible keys because it can always return some kind of a value from any key. |
boolean |
containsValue(java.lang.Object value)
In effect this implementation contains all possible String values that begin with this instance's prefix. |
java.util.Set |
entrySet()
Since the entry set is in effect infinite, this method returns null. |
java.lang.Object |
get(java.lang.Object key)
This method actually returns the toString value for the key object prefixed with this instance's prefix string. |
boolean |
isEmpty()
|
java.util.Set |
keySet()
Since the entry set is in effect infinite, this method returns null. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
This method does nothing. |
void |
putAll(java.util.Map t)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
Since the entry set size is in effect infinite, this method returns the largest possible integer. |
java.util.Collection |
values()
Since the entry set size is in effect infinite, this method returns null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Assembler.PrefixMap(java.lang.String prefix)
| Method Detail |
|---|
public void clear()
clear in interface java.util.Mappublic 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 boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Map
public 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.Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||