public class DefaultFilteringObjectMap extends ObjectMap
ObjectMap
that avoids adding common default values.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DefaultFilteringObjectMap()
Constructor.
|
DefaultFilteringObjectMap(ObjectMap m)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ObjectMap |
append(String key,
Object value)
Convenience method for adding an entry to this map.
|
protected boolean |
shouldSkip(Object value)
Returns
|
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 DefaultFilteringObjectMap(ObjectMap m)
m
- The object map to copy from.
public DefaultFilteringObjectMap()
public ObjectMap append(String key, Object value)
ObjectMap
Equivalent to calling put(key, value)
, but returns this map so that the method can be chained.
protected boolean shouldSkip(Object value)
value
- The value to check.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.