public class BasicMapId extends Object implements MapId
MapId.
Note: This could be extended in various cool ways, like one that takes a type and validates that the given
name corresponds to an actual field or bean property on that type. There could also be another one that uses a
CassandraPersistentEntity and CassandraPersistentProperty instead of a String name.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Serializable> |
map |
| Constructor and Description |
|---|
BasicMapId() |
BasicMapId(Map<String,Serializable> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object name) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Serializable>> |
entrySet() |
boolean |
equals(Object that) |
Serializable |
get(Object name) |
int |
hashCode() |
static MapId |
id()
Factory method.
|
static MapId |
id(MapId id)
Factory method.
|
static MapId |
id(String name,
Serializable value)
Factory method.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
Serializable |
put(String name,
Serializable value) |
void |
putAll(Map<? extends String,? extends Serializable> source) |
Serializable |
remove(Object name) |
int |
size() |
String |
toString() |
Collection<Serializable> |
values() |
BasicMapId |
with(String name,
Serializable value)
Builder method that adds the value for the named property, then returns
this. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Map<String,Serializable> map
public BasicMapId()
public BasicMapId(Map<String,Serializable> map)
public static MapId id()
BasicMapIdpublic static MapId id(String name, Serializable value)
BasicMapIdpublic static MapId id(MapId id)
BasicMapIdpublic BasicMapId with(String name, Serializable value)
MapIdthis.public void clear()
clear in interface Map<String,Serializable>public boolean containsKey(Object name)
containsKey in interface Map<String,Serializable>public boolean containsValue(Object value)
containsValue in interface Map<String,Serializable>public Set<Map.Entry<String,Serializable>> entrySet()
entrySet in interface Map<String,Serializable>public boolean equals(Object that)
public Serializable get(Object name)
get in interface Map<String,Serializable>public int hashCode()
public boolean isEmpty()
isEmpty in interface Map<String,Serializable>public Serializable put(String name, Serializable value)
put in interface Map<String,Serializable>public void putAll(Map<? extends String,? extends Serializable> source)
putAll in interface Map<String,Serializable>public Serializable remove(Object name)
remove in interface Map<String,Serializable>public int size()
size in interface Map<String,Serializable>public Collection<Serializable> values()
values in interface Map<String,Serializable>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.