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 |
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, get, removeEldestEntry
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
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 with(String key, Object val)
Copyright © 2015. All rights reserved.