Class DelegateMap<T extends Map>

Type Parameters:
T - The class type of the wrapped bean.
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, Delegate<T>

public class DelegateMap<T extends Map> extends JsonMap implements Delegate<T>
Represents a wrapped Map where entries in the map can be removed without affecting the underlying map.
See Also:
  • Constructor Details

    • DelegateMap

      public DelegateMap(T m, BeanSession session)
      Constructor.
      Parameters:
      m - The metadata object that created this delegate object.
      session - The current bean session.
  • Method Details

    • getClassMeta

      Description copied from interface: Delegate
      The ClassMeta of the class of the represented object.
      Specified by:
      getClassMeta in interface Delegate<T extends Map>
      Returns:
      The class type of the represented object.
    • filterKeys

      public DelegateMap<T> filterKeys(List<String> keys)
      Remove all but the specified keys from this map.

      This does not affect the underlying map.

      Parameters:
      keys - The remaining keys in the map (in the specified order).
      Returns:
      This object.