Class MapBuilder<K,V>
java.lang.Object
org.springframework.data.cassandra.util.MapBuilder<K,V>
- Type Parameters:
K
- The key type of the map.V
- The value type of the map.
- All Implemented Interfaces:
Map<K,
V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newMapBuilder
.MapBuilder
(Map<K, V> source) Create a new instance with a copy of the given map. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Return a new map based on the current state of this builder's map.void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) MapBuilder
<K, V> Add an entry to this map, then returnsthis
.entrySet()
boolean
@Nullable V
int
hashCode()
boolean
isEmpty()
keySet()
static MapBuilder
<Object, Object> map()
Factory method to construct a newMapBuilder
.static <K,
V> MapBuilder <K, V> Factory method to construct a new builder with the given key & value types.static <K,
V> MapBuilder <K, V> Factory method to construct a new builder with a shallow copy of the given map.void
@Nullable V
int
size()
values()
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MapBuilder
public MapBuilder()Create a newMapBuilder
. -
MapBuilder
-
-
Method Details
-
map
Factory method to construct a newMapBuilder
. Convenient if imported statically. -
map
Factory method to construct a new builder with the given key & value types. Convenient if imported statically. -
map
Factory method to construct a new builder with a shallow copy of the given map. Convenient if imported statically. -
entry
Add an entry to this map, then returnsthis
.- Returns:
- this
-
build
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
-