Package 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.
-
-
Constructor Summary
Constructors Constructor Description DirectMetaPropertyMap(DirectMetaBean metaBean, DirectMetaPropertyMap parent, String... propertyNames)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object propertyName)booleancontainsValue(Object value)Set<Map.Entry<String,MetaProperty<?>>>entrySet()MetaProperty<Object>get(Object propertyName)booleanisEmpty()Set<String>keySet()MetaProperty<?>put(String key, MetaProperty<?> value)voidputAll(Map<? extends String,? extends MetaProperty<?>> m)MetaProperty<?>remove(Object key)intsize()Collection<MetaProperty<?>>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceMap<String,MetaProperty<?>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<String,MetaProperty<?>>
-
get
public MetaProperty<Object> get(Object propertyName)
- Specified by:
getin interfaceMap<String,MetaProperty<?>>
-
containsKey
public boolean containsKey(Object propertyName)
- Specified by:
containsKeyin interfaceMap<String,MetaProperty<?>>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,MetaProperty<?>>
-
put
public MetaProperty<?> put(String key, MetaProperty<?> value)
- Specified by:
putin interfaceMap<String,MetaProperty<?>>
-
remove
public MetaProperty<?> remove(Object key)
- Specified by:
removein interfaceMap<String,MetaProperty<?>>
-
putAll
public void putAll(Map<? extends String,? extends MetaProperty<?>> m)
- Specified by:
putAllin interfaceMap<String,MetaProperty<?>>
-
clear
public void clear()
- Specified by:
clearin interfaceMap<String,MetaProperty<?>>
-
values
public Collection<MetaProperty<?>> values()
- Specified by:
valuesin interfaceMap<String,MetaProperty<?>>
-
entrySet
public Set<Map.Entry<String,MetaProperty<?>>> entrySet()
- Specified by:
entrySetin interfaceMap<String,MetaProperty<?>>
-
-