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.-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterKeys(List<String> keys) Remove all but the specified keys from this map.TheClassMetaof 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, writeToMethods inherited from class java.util.LinkedHashMap
clear, containsValue, forEach, getOrDefault, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
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.
-
getClassMeta
Description copied from interface:DelegateTheClassMetaof the class of the represented object.- Specified by:
getClassMetain interfaceDelegate<T extends Map>- Returns:
- The class type of the represented object.
-