ICollectionValue<java.util.Map.Entry<TKey,TValue>>, IDictionary<TKey,TValue>, java.lang.Iterable<java.util.Map.Entry<TKey,TValue>>ElementHashDictionarypublic class HashDictionary<TKey,TValue> extends ion.Meta.Element implements IDictionary<TKey,TValue>
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
HashDictionary.AddRequest |
|
protected class |
HashDictionary.ModifyElementRequest |
|
protected class |
HashDictionary.RemoveRequest |
|
protected class |
HashDictionary.SetRequest |
| Constructor | Description |
|---|---|
HashDictionary() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(TKey key,
TValue val) |
|
<U extends TKey,W extends TValue> |
addAll(java.lang.Iterable<java.util.Map.Entry<U,W>> entries) |
|
boolean |
contains(java.util.Map.Entry<TKey,TValue> item) |
|
boolean |
contains(TKey key) |
|
<H extends TKey> |
containsAll(java.lang.Iterable<H> keys) |
|
void |
copyTo(java.util.Map.Entry<TKey,TValue>[] arr,
int startIndex) |
|
int |
count() |
|
TValue |
get(TKey key) |
|
protected java.util.HashMap<TKey,TValue> |
getDictionary() |
|
ICollectionValue<TKey> |
getKeys() |
|
ICollectionValue<TValue> |
getValues() |
|
protected void |
handleModificationRequests(ion.Meta.IReadOnlyQueueSet<ion.Meta.Request> requests) |
Handles every request made to modify this Dictionary.
|
java.util.Iterator<java.util.Map.Entry<TKey,TValue>> |
iterator() |
|
void |
onDestroy() |
|
void |
remove(TKey key) |
|
void |
removeAll() |
|
void |
removeAll(java.lang.Iterable<TKey> keys) |
|
void |
set(TKey key,
TValue value) |
|
java.util.Map.Entry<TKey,TValue>[] |
toArray() |
public void onDestroy()
onDestroy in class ion.Meta.Elementprotected void handleModificationRequests(ion.Meta.IReadOnlyQueueSet<ion.Meta.Request> requests)
requests - public <U extends TKey,W extends TValue> void addAll(java.lang.Iterable<java.util.Map.Entry<U,W>> entries)
addAll in interface IDictionary<TKey,TValue>public void remove(TKey key)
remove in interface IDictionary<TKey,TValue>public void removeAll(java.lang.Iterable<TKey> keys)
removeAll in interface IDictionary<TKey,TValue>public void removeAll()
removeAll in interface IDictionary<TKey,TValue>public boolean contains(TKey key)
contains in interface IDictionary<TKey,TValue>public <H extends TKey> boolean containsAll(java.lang.Iterable<H> keys)
containsAll in interface IDictionary<TKey,TValue>public ICollectionValue<TKey> getKeys()
getKeys in interface IDictionary<TKey,TValue>public ICollectionValue<TValue> getValues()
getValues in interface IDictionary<TKey,TValue>public void set(TKey key, TValue value)
set in interface IDictionary<TKey,TValue>public int count()
count in interface ICollectionValue<TKey>public void copyTo(java.util.Map.Entry<TKey,TValue>[] arr, int startIndex)
copyTo in interface ICollectionValue<TKey>public java.util.Map.Entry<TKey,TValue>[] toArray()
toArray in interface ICollectionValue<TKey>public java.util.Iterator<java.util.Map.Entry<TKey,TValue>> iterator()
iterator in interface java.lang.Iterable<TKey>