org.joda.beans.impl
Class BasicPropertyMap
java.lang.Object
java.util.AbstractMap<String,Property<?>>
org.joda.beans.impl.BasicPropertyMap
- All Implemented Interfaces:
- Map<String,Property<?>>, PropertyMap
public final class BasicPropertyMap
- extends AbstractMap<String,Property<?>>
- implements PropertyMap
A standard map of properties.
This is the standard implementation of a map of properties derived from a meta-bean.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.AbstractMap |
clear, clone, containsValue, equals, hashCode, isEmpty, put, putAll, remove, toString, values |
of
public static BasicPropertyMap of(Bean bean)
- Factory to create a property map avoiding duplicate generics.
- Parameters:
bean - the bean
- Returns:
- the property map, not null
size
public int size()
- Specified by:
size in interface Map<String,Property<?>>- Overrides:
size in class AbstractMap<String,Property<?>>
containsKey
public boolean containsKey(Object obj)
- Specified by:
containsKey in interface Map<String,Property<?>>- Overrides:
containsKey in class AbstractMap<String,Property<?>>
get
public Property<?> get(Object obj)
- Specified by:
get in interface Map<String,Property<?>>- Overrides:
get in class AbstractMap<String,Property<?>>
keySet
public Set<String> keySet()
- Specified by:
keySet in interface Map<String,Property<?>>- Overrides:
keySet in class AbstractMap<String,Property<?>>
entrySet
public Set<Map.Entry<String,Property<?>>> entrySet()
- Specified by:
entrySet in interface Map<String,Property<?>>- Specified by:
entrySet in class AbstractMap<String,Property<?>>
flatten
public Map<String,Object> flatten()
- Description copied from interface:
PropertyMap
- Flattens the contents of this property map to a
Map.
The returned map will contain all the properties from the bean with their actual values.
- Specified by:
flatten in interface PropertyMap
- Returns:
- the unmodifiable map of property name to value, not null
Copyright © 2007–2017 Joda.org. All rights reserved.