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 void
clear()
boolean
containsKey(Object propertyName)
boolean
containsValue(Object value)
Set<Map.Entry<String,MetaProperty<?>>>
entrySet()
MetaProperty<Object>
get(Object propertyName)
boolean
isEmpty()
Set<String>
keySet()
MetaProperty<?>
put(String key, MetaProperty<?> value)
void
putAll(Map<? extends String,? extends MetaProperty<?>> m)
MetaProperty<?>
remove(Object key)
int
size()
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:
size
in interfaceMap<String,MetaProperty<?>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMap<String,MetaProperty<?>>
-
get
public MetaProperty<Object> get(Object propertyName)
- Specified by:
get
in interfaceMap<String,MetaProperty<?>>
-
containsKey
public boolean containsKey(Object propertyName)
- Specified by:
containsKey
in interfaceMap<String,MetaProperty<?>>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,MetaProperty<?>>
-
put
public MetaProperty<?> put(String key, MetaProperty<?> value)
- Specified by:
put
in interfaceMap<String,MetaProperty<?>>
-
remove
public MetaProperty<?> remove(Object key)
- Specified by:
remove
in interfaceMap<String,MetaProperty<?>>
-
putAll
public void putAll(Map<? extends String,? extends MetaProperty<?>> m)
- Specified by:
putAll
in interfaceMap<String,MetaProperty<?>>
-
clear
public void clear()
- Specified by:
clear
in interfaceMap<String,MetaProperty<?>>
-
values
public Collection<MetaProperty<?>> values()
- Specified by:
values
in interfaceMap<String,MetaProperty<?>>
-
entrySet
public Set<Map.Entry<String,MetaProperty<?>>> entrySet()
- Specified by:
entrySet
in interfaceMap<String,MetaProperty<?>>
-
-