Package org.opencms.gwt.shared.property
Class CmsLazyPropertyMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,CmsClientProperty>
-
- org.opencms.gwt.shared.property.CmsLazyPropertyMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,CmsClientProperty>
public class CmsLazyPropertyMap extends java.util.HashMap<java.lang.String,CmsClientProperty>
A lazy initialized map of properties. Will return a property object for any key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsLazyPropertyMap(java.util.Map<java.lang.String,CmsClientProperty> original)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsClientProperty
get(java.lang.Object key)
Returns the property with the given name.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
CmsLazyPropertyMap
public CmsLazyPropertyMap(java.util.Map<java.lang.String,CmsClientProperty> original)
Constructor.- Parameters:
original
- properties that will be added to this map
-
-
Method Detail
-
get
public CmsClientProperty get(java.lang.Object key)
Returns the property with the given name.- Specified by:
get
in interfacejava.util.Map<java.lang.String,CmsClientProperty>
- Overrides:
get
in classjava.util.HashMap<java.lang.String,CmsClientProperty>
- Parameters:
key
- the property name- Returns:
- the property
-
-