Class ValueMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.amazonaws.services.dynamodbv2.document.utils.FluentHashMap<String,Object>
com.amazonaws.services.dynamodbv2.document.utils.ValueMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
Utility class for value maps.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value of the specified key to the given value.withBinary
(String key, byte[] val) Sets the value of the specified key in the current ValueMap to the given value.withBinarySet
(String key, byte[]... val) Sets the value of the specified key in the current ValueMap to the given value.withBinarySet
(String key, Set<byte[]> val) Sets the value of the specified key in the current ValueMap to the given value.withBoolean
(String key, boolean val) Sets the value of the specified key in the current ValueMap to the boolean value.Sets the value of the specified key in the current ValueMap to the given value.Sets the value of the specified key in the current ValueMap to the given values as a list.Sets the value of the specified key in the current ValueMap to the given value.Sets the value of the specified key in the current ValueMap to the given value.Sets the value of the specified key in the current ValueMap to the given value.Sets the value of the specified key to null.withNumber
(String key, Number val) Sets the value of the specified key in the current ValueMap to the given value.withNumber
(String key, BigDecimal val) Sets the value of the specified key in the current ValueMap to the given value.withNumberSet
(String key, Number... val) Sets the value of the specified key in the current ValueMap to the given value.withNumberSet
(String key, BigDecimal... val) Sets the value of the specified key in the current ValueMap to the given value.withNumberSet
(String key, Set<BigDecimal> val) Sets the value of the specified key in the current ValueMap to the given value.withString
(String key, String val) Sets the value of the specified key in the current ValueMap to the given value.withStringSet
(String key, String... val) Sets the value of the specified key in the current ValueMap to the given value.withStringSet
(String key, Set<String> val) Sets the value of the specified key in the current ValueMap to the given value.Methods inherited from class com.amazonaws.services.dynamodbv2.document.utils.FluentHashMap
delete
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
ValueMap
public ValueMap()
-
-
Method Details
-
withString
Sets the value of the specified key in the current ValueMap to the given value. -
withNumber
Sets the value of the specified key in the current ValueMap to the given value. -
withNumber
Sets the value of the specified key in the current ValueMap to the given value. -
withInt
Sets the value of the specified key in the current ValueMap to the given value. -
withLong
Sets the value of the specified key in the current ValueMap to the given value. -
withBinary
Sets the value of the specified key in the current ValueMap to the given value. -
withStringSet
Sets the value of the specified key in the current ValueMap to the given value. -
withStringSet
Sets the value of the specified key in the current ValueMap to the given value. -
withNumberSet
Sets the value of the specified key in the current ValueMap to the given value. -
withNumberSet
Sets the value of the specified key in the current ValueMap to the given value. -
withNumberSet
Sets the value of the specified key in the current ValueMap to the given value. -
withBinarySet
Sets the value of the specified key in the current ValueMap to the given value. -
withBinarySet
Sets the value of the specified key in the current ValueMap to the given value. -
withList
Sets the value of the specified key in the current ValueMap to the given value. -
withList
Sets the value of the specified key in the current ValueMap to the given values as a list. -
withMap
Sets the value of the specified key in the current ValueMap to the given value. -
withBoolean
Sets the value of the specified key in the current ValueMap to the boolean value. -
withNull
Sets the value of the specified key to null. -
with
Sets the value of the specified key to the given value. A value can be a- Number
- String
- binary (ie byte array or byte buffer)
- boolean
- null
- list (of any of the types on this list)
- map (with string key to value of any of the types on this list)
- set (of any of the types on this list)
-