public final class BasicPropertyMap extends AbstractMap<String,Property<?>> implements PropertyMap
This is the standard implementation of a map of properties derived from a meta-bean.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object obj) |
Set<Map.Entry<String,Property<?>>> |
entrySet() |
Map<String,Object> |
flatten()
Flattens the contents of this property map to a
Map. |
Property<?> |
get(Object obj) |
Set<String> |
keySet() |
static BasicPropertyMap |
of(Bean bean)
Factory to create a property map avoiding duplicate generics.
|
int |
size() |
clear, clone, containsValue, equals, hashCode, isEmpty, put, putAll, remove, toString, valuespublic static BasicPropertyMap of(Bean bean)
bean - the beanpublic int size()
public boolean containsKey(Object obj)
containsKey in interface Map<String,Property<?>>containsKey in class AbstractMap<String,Property<?>>public Map<String,Object> flatten()
PropertyMapMap.
The returned map will contain all the properties from the bean with their actual values.
flatten in interface PropertyMapCopyright © 2007–2013 Joda.org. All rights reserved.