public class ValueMap extends FluentHashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ValueMap() |
Modifier and Type | Method and Description |
---|---|
ValueMap |
with(String key,
Object val)
Sets the value of the specified key to the given value.
|
ValueMap |
withBinary(String key,
byte[] val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withBinarySet(String key,
byte[]... val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withBinarySet(String key,
Set<byte[]> val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withBoolean(String key,
boolean val)
Sets the value of the specified key in the current ValueMap to the
boolean value.
|
ValueMap |
withInt(String key,
int val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withJSON(String key,
String jsonValue)
Sets the value of the specified key to an object represented by the JSON
structure passed.
|
ValueMap |
withList(String key,
List<?> val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withList(String key,
Object... vals)
Sets the value of the specified key in the current ValueMap to the
given values as a list.
|
ValueMap |
withLong(String key,
long val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withMap(String key,
Map<String,?> val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNull(String key)
Sets the value of the specified key to null.
|
ValueMap |
withNumber(String key,
BigDecimal val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNumber(String key,
Number val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNumberSet(String key,
BigDecimal... val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNumberSet(String key,
Number... val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNumberSet(String key,
Set<BigDecimal> val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withString(String key,
String val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withStringSet(String key,
Set<String> val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withStringSet(String key,
String... val)
Sets the value of the specified key in the current ValueMap to the
given value.
|
delete
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public ValueMap withString(String key, String val)
public ValueMap withNumber(String key, BigDecimal val)
public ValueMap withNumber(String key, Number val)
public ValueMap withInt(String key, int val)
public ValueMap withLong(String key, long val)
public ValueMap withBinary(String key, byte[] val)
public ValueMap withStringSet(String key, Set<String> val)
public ValueMap withStringSet(String key, String... val)
public ValueMap withNumberSet(String key, Set<BigDecimal> val)
public ValueMap withNumberSet(String key, BigDecimal... val)
public ValueMap withNumberSet(String key, Number... val)
public ValueMap withBinarySet(String key, Set<byte[]> val)
public ValueMap withBinarySet(String key, byte[]... val)
public ValueMap withList(String key, List<?> val)
public ValueMap withList(String key, Object... vals)
public ValueMap withMap(String key, Map<String,?> val)
public ValueMap withBoolean(String key, boolean val)
public ValueMap withJSON(String key, String jsonValue)
public ValueMap with(String key, Object val)
Copyright © 2021. All rights reserved.