Serializable
, Cloneable
, Map<K,V>
public class ValueMap extends FluentHashMap<String,Object>
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
Constructor | Description |
---|---|
ValueMap() |
Modifier and Type | Method | 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,
Object... vals) |
Sets the value of the specified key in the current ValueMap to the
given values as a list.
|
ValueMap |
withList(String key,
List<?> val) |
Sets the value of the specified key in the current ValueMap to the
given value.
|
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,
Number val) |
Sets the value of the specified key in the current ValueMap to the
given value.
|
ValueMap |
withNumber(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,
BigDecimal... 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,
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.
|
equals, hashCode, toString
delete
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.