org.joda.beans.impl.direct
Class DirectMetaPropertyMap
java.lang.Object
org.joda.beans.impl.direct.DirectMetaPropertyMap
- All Implemented Interfaces:
- Map<String,MetaProperty<?>>
public final class DirectMetaPropertyMap
- extends Object
- implements Map<String,MetaProperty<?>>
A map of name to meta-property designed for use by the code generator.
This meta-property map implementation is designed primarily for code-generation.
It stores a reference to the meta-bean and the meta-properties.
The meta-properties are accessed using DirectMetaBean.metaPropertyGet(String).
This class is immutable and thread-safe.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectMetaPropertyMap
public DirectMetaPropertyMap(DirectMetaBean metaBean,
DirectMetaPropertyMap parent,
String... propertyNames)
- Constructor.
- Parameters:
metaBean - the meta-bean, not nullparent - the superclass parent, may be nullpropertyNames - the property names, not null
size
public int size()
- Specified by:
size in interface Map<String,MetaProperty<?>>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<String,MetaProperty<?>>
get
public MetaProperty<Object> get(Object propertyName)
- Specified by:
get in interface Map<String,MetaProperty<?>>
containsKey
public boolean containsKey(Object propertyName)
- Specified by:
containsKey in interface Map<String,MetaProperty<?>>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<String,MetaProperty<?>>
put
public MetaProperty<?> put(String key,
MetaProperty<?> value)
- Specified by:
put in interface Map<String,MetaProperty<?>>
remove
public MetaProperty<?> remove(Object key)
- Specified by:
remove in interface Map<String,MetaProperty<?>>
putAll
public void putAll(Map<? extends String,? extends MetaProperty<?>> m)
- Specified by:
putAll in interface Map<String,MetaProperty<?>>
clear
public void clear()
- Specified by:
clear in interface Map<String,MetaProperty<?>>
keySet
public Set<String> keySet()
- Specified by:
keySet in interface Map<String,MetaProperty<?>>
values
public Collection<MetaProperty<?>> values()
- Specified by:
values in interface Map<String,MetaProperty<?>>
entrySet
public Set<Map.Entry<String,MetaProperty<?>>> entrySet()
- Specified by:
entrySet in interface Map<String,MetaProperty<?>>
Copyright © 2007–2017 Joda.org. All rights reserved.