Package org.apache.juneau.internal
Class DelegateMap<T extends Map>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.apache.juneau.collections.JsonMap
org.apache.juneau.internal.DelegateMap<T>
- Type Parameters:
T
- The class type of the wrapped bean.
Represents a wrapped
Map
where entries in the map can be removed without affecting the underlying map.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterKeys
(List<String> keys) Remove all but the specified keys from this map.TheClassMeta
of the class of the represented object.Methods inherited from class org.apache.juneau.collections.JsonMap
append, append, appendFirst, appendIf, appendIf, appendIfAbsent, appendIfAbsentIf, asJson, asReadableString, asString, asString, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, create, deleteAt, entrySet, exclude, filtered, filtered, filteredMap, filteredMap, find, find, findBoolean, findInt, findKeyIgnoreCase, findList, findLong, findMap, findString, get, get, get, getAt, getAt, getBeanSession, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getList, getList, getLong, getLong, getMap, getMap, getMap, getMap, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, include, inner, isUnmodifiable, keepAll, keySet, modifiable, of, of, ofJson, ofJson, ofText, ofText, postAt, put, putAt, putJson, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, session, setBeanSession, toString, unmodifiable, writeTo
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, forEach, getOrDefault, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
DelegateMap
Constructor.- Parameters:
m
- The metadata object that created this delegate object.session
- The current bean session.
-
-
Method Details
-
getClassMeta
Description copied from interface:Delegate
TheClassMeta
of the class of the represented object.- Specified by:
getClassMeta
in interfaceDelegate<T extends Map>
- Returns:
- The class type of the represented object.
-
filterKeys
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.
-