public class DefaultFilteringOMap extends OMap
OMap
that avoids adding common default values.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DefaultFilteringOMap()
Constructor.
|
DefaultFilteringOMap(OMap m)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OMap |
a(String key,
Object value)
Add.
|
OMap |
append(String key,
Object value)
Add.
|
protected boolean |
shouldSkip(Object value)
Returns
|
aa, aif, aif, aif, aife, aifn, aifne, 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 DefaultFilteringOMap(OMap m)
m
- The object map to copy from.
public DefaultFilteringOMap()
public OMap append(String key, Object value)
OMap
Same as OMap.a(String, Object)
public OMap a(String key, Object value)
OMap
Adds an entry to this map.
protected boolean shouldSkip(Object value)
value
- The value to check.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.