T
- The class type of the wrapped bean.public class DelegateMap<T extends Map> extends OMap 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. |
a, aa, aif, aif, aif, aife, aifn, aifne, append, appendAll, appendIf, appendIf, appendIf, appendIfEmpty, appendIfNotEmpty, appendIfNull, appendSkipEmpty, appendSkipFalse, appendSkipMinusOne, appendSkipNull, ase, asf, asmo, asn, asString, asString, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, deleteAt, entrySet, exclude, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, inner, isUnmodifiable, keepAll, keySet, modifiable, of, of, ofAll, ofJson, ofJson, ofText, ofText, postAt, putAt, putJson, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, session, toString, unmodifiable, writeTo
findObjectList, findObjectMap, getList, getList, getMap, getMap, getObjectList, getObjectList, getObjectList, getObjectMap, getObjectMap, getObjectMap, parse, putIfEmpty, putIfNotExists, putIfNull, serializeTo, setBeanSession, setInner, toString
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.