org.joda.beans.impl
Class BasicPropertyMap

java.lang.Object
  extended by java.util.AbstractMap<String,Property<?>>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 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()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, put, putAll, remove, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsValue, equals, hashCode, isEmpty, put, putAll, remove, values
 

Method Detail

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–2014 Joda.org. All rights reserved.