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.marshall.collections.MarshalledMap
org.apache.juneau.marshall.collections.JsonMap
org.apache.juneau.marshall.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 TypeMethodDescriptionbooleanfilterKeys(List<String> keys) Remove all but the specified keys from this map.TheBeanInfoof the class of the represented object.inthashCode()Methods inherited from class org.apache.juneau.marshall.collections.JsonMap
append, append, appendFirst, appendIf, appendIf, appendIfAbsent, appendIfAbsentIf, create, exclude, filtered, filtered, filteredMap, filteredMap, findList, findMap, getList, getList, getList, getMap, getMap, getMap, include, inner, keepAll, modifiable, newMarshalledMap, of, of, ofString, ofString, ofString, ofString, putJson, session, setBeanSession, toHjson, toJcs, toJson, toJson5, toJsonl, toReadableJson5, toString, unmodifiable, writeToMethods inherited from class org.apache.juneau.marshall.collections.MarshalledMap
at, bs, cast, cast, containsKey, containsKeyNotEmpty, containsOuterKey, deleteAt, entrySet, find, find, findBoolean, findInt, findKeyIgnoreCase, findLong, findString, get, get, get, getAt, getAt, getBoolean, getBoolean, getClassMeta, getFirstKey, getInt, getInt, getList, getList, getLong, getLong, getMap, getMap, getMarshallingSession, getString, getString, getStringArray, getStringArray, getSwapped, getWithDefault, getWithDefault, getWithDefault, is, isUnmodifiable, keySet, postAt, put, putAt, removeAll, removeAll, removeBoolean, removeBoolean, removeInt, removeInt, removeString, removeString, removeWithDefault, toStringMethods 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.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, 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.
-
equals
-
hashCode
-
getBeanInfo
Description copied from interface:DelegateTheBeanInfoof the class of the represented object.- Specified by:
getBeanInfoin interfaceDelegate<T extends Map>- Returns:
- The class type of the represented object.
-