Interface BeanMap<T>

  • Type Parameters:
    T - type Generic
    All Superinterfaces:
    java.util.Map<java.lang.String,​java.lang.Object>

    public interface BeanMap<T>
    extends java.util.Map<java.lang.String,​java.lang.Object>
    Simple class that provides a map interface over a bean.
    Since:
    1.0
    • 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 Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<T> getBeanType()  
      static <B> BeanMap<B> of​(B bean)
      Creates a BeanMap for the given bean.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Method Detail

      • getBeanType

        @NonNull
        java.lang.Class<T> getBeanType()
        Returns:
        The bean type
      • of

        @NonNull
        static <B> BeanMap<B> of​(@NonNull
                                 B bean)
        Creates a BeanMap for the given bean.
        Type Parameters:
        B - type Generic
        Parameters:
        bean - The bean
        Returns:
        The bean map