T
- The class type of the wrapped bean.public class DelegateMap<T extends Map> extends ObjectMap implements Delegate<T>
Map
where entries in the map can be removed without affecting the underlying map.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DelegateMap(T m,
BeanSession session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DelegateMap<T> |
filterKeys(List<String> keys)
Remove all but the specified keys from this map.
|
ClassMeta<T> |
getClassMeta()
The
ClassMeta of the class of the represented object. |
append, appendAll, appendIf, appendIf, appendSkipEmpty, appendSkipFalse, appendSkipMinusOne, appendSkipNull, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, deleteAt, entrySet, exclude, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findObjectList, findObjectMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getObjectList, getObjectList, getObjectList, getObjectMap, getObjectMap, getObjectMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, isUnmodifiable, keepAll, keySet, modifiable, parse, postAt, putAt, putIfEmpty, putIfNotExists, putIfNull, putJson, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, serializeTo, setBeanSession, setInner, toString, toString, unmodifiable
clear, containsValue, forEach, getOrDefault, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
public DelegateMap(T m, BeanSession session)
m
- The metadata object that created this delegate object.session
- The current bean session.public ClassMeta<T> getClassMeta()
Delegate
ClassMeta
of the class of the represented object.getClassMeta
in interface Delegate<T extends Map>
public DelegateMap<T> filterKeys(List<String> keys)
This does not affect the underlying map.
keys
- The remaining keys in the map (in the specified order).Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.