Package ion.SyncCollections
Class HashDictionary<TKey,TValue>
java.lang.Object
ion.Meta.Element
ion.SyncCollections.HashDictionary<TKey,TValue>
- All Implemented Interfaces:
ICollectionValue<Map.Entry<TKey,,TValue>> IDictionary<TKey,,TValue> Iterable<Map.Entry<TKey,TValue>>
- Direct Known Subclasses:
ElementHashDictionary
public class HashDictionary<TKey,TValue>
extends ion.Meta.Element
implements IDictionary<TKey,TValue>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final classprotected classprotected final classprotected final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanboolean<H extends TKey>
booleancontainsAll(Iterable<H> keys) voidintcount()getKeys()protected voidhandleModificationRequests(ion.Meta.IReadOnlyQueueSet<ion.Meta.Request> requests) Handles every request made to modify this Dictionary.iterator()voidvoidvoidvoidvoidtoArray()Methods inherited from class ion.Meta.Element
destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, raise, schedule, wasDestroyedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HashDictionary
public HashDictionary()
-
-
Method Details
-
onDestroy
public void onDestroy()- Specified by:
onDestroyin classion.Meta.Element
-
handleModificationRequests
protected void handleModificationRequests(ion.Meta.IReadOnlyQueueSet<ion.Meta.Request> requests) Handles every request made to modify this Dictionary. Sets have maximum priority. I.E. All elements on setRequests are removed from the add and remove requests list.- Parameters:
requests-
-
add
- Specified by:
addin interfaceIDictionary<TKey,TValue>
-
addAll
- Specified by:
addAllin interfaceIDictionary<TKey,TValue>
-
remove
- Specified by:
removein interfaceIDictionary<TKey,TValue>
-
removeAll
- Specified by:
removeAllin interfaceIDictionary<TKey,TValue>
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceIDictionary<TKey,TValue>
-
contains
- Specified by:
containsin interfaceIDictionary<TKey,TValue>
-
containsAll
- Specified by:
containsAllin interfaceIDictionary<TKey,TValue>
-
getKeys
- Specified by:
getKeysin interfaceIDictionary<TKey,TValue>
-
getValues
- Specified by:
getValuesin interfaceIDictionary<TKey,TValue>
-
get
- Specified by:
getin interfaceIDictionary<TKey,TValue>
-
set
- Specified by:
setin interfaceIDictionary<TKey,TValue>
-
contains
-
count
public int count()- Specified by:
countin interfaceICollectionValue<TKey>
-
copyTo
- Specified by:
copyToin interfaceICollectionValue<TKey>
-
toArray
- Specified by:
toArrayin interfaceICollectionValue<TKey>
-
iterator
-
getDictionary
-