org.mmbase.util.xml
Class UtilReader.PropertiesMap<E>
java.lang.Object
java.util.AbstractMap<String,E>
org.mmbase.util.xml.UtilReader.PropertiesMap<E>
- All Implemented Interfaces:
- Map<String,E>
- Enclosing class:
- UtilReader
public static class UtilReader.PropertiesMap<E>
- extends AbstractMap<String,E>
A unmodifiable Map, with extra 'Properties'-like methods. The entries of this Map are
typically backed by the resources of an UtilReader (and the Map dynamically changes if the
resources change).
- Since:
- MMBase-1.8
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
UtilReader.PropertiesMap
public UtilReader.PropertiesMap()
- Creates an empty Map (not very useful since this Map is unmodifiable).
UtilReader.PropertiesMap
public UtilReader.PropertiesMap(Map<String,E> map)
- Wrapping the given map.
entrySet
public Set<Map.Entry<String,E>> entrySet()
-
- Specified by:
entrySet in interface Map<String,E>- Specified by:
entrySet in class AbstractMap<String,E>
getProperty
public E getProperty(String key,
E defaultValue)
- Returns the object mapped with 'key', or defaultValue if there is none.
MMBase 2.0-SNAPSHOT - null