Class DirectMetaPropertyMap

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​MetaProperty<?>>

    public final class DirectMetaPropertyMap
    extends java.lang.Object
    implements java.util.Map<java.lang.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 Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object propertyName)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​MetaProperty<?>>> entrySet()  
      MetaProperty<java.lang.Object> get​(java.lang.Object propertyName)  
      boolean isEmpty()  
      java.util.Set<java.lang.String> keySet()  
      MetaProperty<?> put​(java.lang.String key, MetaProperty<?> value)  
      void putAll​(java.util.Map<? extends java.lang.String,​? extends MetaProperty<?>> m)  
      MetaProperty<?> remove​(java.lang.Object key)  
      int size()  
      java.util.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,
                                     java.lang.String... propertyNames)
        Constructor.
        Parameters:
        metaBean - the meta-bean, not null
        parent - the superclass parent, may be null
        propertyNames - the property names, not null
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • get

        public MetaProperty<java.lang.Object> get​(java.lang.Object propertyName)
        Specified by:
        get in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • containsKey

        public boolean containsKey​(java.lang.Object propertyName)
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • remove

        public MetaProperty<?> remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.String,​? extends MetaProperty<?>> m)
        Specified by:
        putAll in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • values

        public java.util.Collection<MetaProperty<?>> values()
        Specified by:
        values in interface java.util.Map<java.lang.String,​MetaProperty<?>>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​MetaProperty<?>>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​MetaProperty<?>>