Class BasicPropertyMap

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

    public final class BasicPropertyMap
    extends java.util.AbstractMap<java.lang.String,​Property<?>>
    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

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object obj)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​Property<?>>> entrySet()  
      java.util.Map<java.lang.String,​java.lang.Object> flatten()
      Flattens the contents of this property map to a Map.
      Property<?> get​(java.lang.Object obj)  
      java.util.Set<java.lang.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

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • 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 java.util.Map<java.lang.String,​Property<?>>
        Overrides:
        size in class java.util.AbstractMap<java.lang.String,​Property<?>>
      • containsKey

        public boolean containsKey​(java.lang.Object obj)
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​Property<?>>
        Overrides:
        containsKey in class java.util.AbstractMap<java.lang.String,​Property<?>>
      • get

        public Property<?> get​(java.lang.Object obj)
        Specified by:
        get in interface java.util.Map<java.lang.String,​Property<?>>
        Overrides:
        get in class java.util.AbstractMap<java.lang.String,​Property<?>>
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.String,​Property<?>>
        Overrides:
        keySet in class java.util.AbstractMap<java.lang.String,​Property<?>>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​Property<?>>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​Property<?>>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​Property<?>>
      • flatten

        public java.util.Map<java.lang.String,​java.lang.Object> flatten()
        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.

        Returns:
        the unmodifiable map of property name to value, not null