public abstract class IcedHashMapBase<K,V> extends Iced implements java.util.Map<K,V>, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
IcedHashMapBase.ArrayType |
static class |
IcedHashMapBase.KeyType |
static class |
IcedHashMapBase.ValueType |
Constructor and Description |
---|
IcedHashMapBase() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.Object key) |
int |
hashCode() |
protected abstract java.util.Map<K,V> |
init() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
protected abstract java.util.Map<K,V> |
map() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
IcedHashMapBase |
read_impl(AutoBuffer ab)
Helper for serialization - fills the mymap() from K-V pairs in the AutoBuffer object
|
IcedHashMapBase |
readJSON_impl(AutoBuffer ab) |
protected K |
readKey(AutoBuffer ab,
IcedHashMapBase.KeyType keyType) |
protected V |
readValue(AutoBuffer ab,
IcedHashMapBase.ValueType valueType,
IcedHashMapBase.ArrayType arrayType) |
V |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
AutoBuffer |
write_impl(AutoBuffer ab) |
protected boolean |
writeable()
Can the map be modified?
By default we don't make any assumptions about the implementation of the backing Map and we will write-lock
the map when we are trying to serialize it.
|
AutoBuffer |
writeJSON_impl(AutoBuffer ab) |
protected void |
writeKey(AutoBuffer ab,
IcedHashMapBase.KeyType keyType,
K key) |
protected void |
writeMap(AutoBuffer ab,
byte mode) |
protected void |
writeValue(AutoBuffer ab,
IcedHashMapBase.ValueType valueType,
IcedHashMapBase.ArrayType arrayType,
V value) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public final AutoBuffer write_impl(AutoBuffer ab)
protected boolean writeable()
protected void writeMap(AutoBuffer ab, byte mode)
protected void writeKey(AutoBuffer ab, IcedHashMapBase.KeyType keyType, K key)
protected void writeValue(AutoBuffer ab, IcedHashMapBase.ValueType valueType, IcedHashMapBase.ArrayType arrayType, V value)
protected K readKey(AutoBuffer ab, IcedHashMapBase.KeyType keyType)
protected V readValue(AutoBuffer ab, IcedHashMapBase.ValueType valueType, IcedHashMapBase.ArrayType arrayType)
public final IcedHashMapBase read_impl(AutoBuffer ab)
ab
- Contains the serialized K-V pairspublic final IcedHashMapBase readJSON_impl(AutoBuffer ab)
public final AutoBuffer writeJSON_impl(AutoBuffer ab)