public final class NDictionary extends NObjectPart implements Map<Object,Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
NDictionary.EntrySet
A class representing a set of dictionary entries.
|
static class |
NDictionary.KeySet
A class representing a set of dictionary entry keys.
|
static class |
NDictionary.ValueCollection
A class representing a set of dictionary entry values.
|
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Map.Entry<Object,Object> e)
Adds an entry to the dictionary.
|
void |
add(Object e)
Adds an entry to the dictionary.
|
void |
add(Object key,
Object value)
Adds an entry to the dictionary.
|
boolean |
addAll(Collection<? extends Map.Entry<Object,Object>> c)
Adds a collection of entries to the dictionary.
|
void |
addCollectionChangeListener(NCollectionChangeListener listener)
Adds a listener for an event which occurs when collection is changed.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Object,Object>> |
entrySet() |
Map.Entry<Object,Object> |
get(int index)
Retrieves the entry specified by index.
|
Object |
get(Object key) |
Object |
getItemAt(int index)
Retrieves an item specified by index.
|
boolean |
isEmpty() |
boolean |
isReadOnly()
Cheks whether the array collection is read-only.
|
Set<Object> |
keySet() |
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NType |
nDictionaryCollectionChangedCallbackNativeTypeOf()
Defines the native type of the "collection changed" callback.
|
Object |
put(Object key,
Object value) |
void |
putAll(Map<? extends Object,? extends Object> m) |
Map.Entry<Object,Object> |
remove(int index)
Removes the entry specified by index.
|
Object |
remove(Object key) |
void |
removeCollectionChangeListener(NCollectionChangeListener listener)
Removes a listener for an event which occurs when collection is changed.
|
void |
set(Object key,
Object value)
Sets the value of entry specified by key.
|
int |
size() |
Map.Entry<Object,Object>[] |
toArray() |
Object |
toItemArray()
Converts the dictionary to an array.
|
Collection<Object> |
values() |
getObjectPartInfoaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizegetClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static NType nDictionaryCollectionChangedCallbackNativeTypeOf()
public static NType nativeTypeOf()
public boolean isReadOnly()
public boolean containsKey(Object key)
containsKey in interface Map<Object,Object>public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>public void add(Object key, Object value)
key - Entry key.value - Entry value.public void set(Object key, Object value)
key - Entry key.value - New entry value.public Object getItemAt(int index)
index - Index of the item.public Object toItemArray()
public boolean add(Map.Entry<Object,Object> e)
e - The entry to add.public void add(Object e)
e - The entry to add.public boolean addAll(Collection<? extends Map.Entry<Object,Object>> c)
c - The collection of entries.public Map.Entry<Object,Object> get(int index)
index - Index of the entry.public Map.Entry<Object,Object> remove(int index)
index - Index of the entry to remove.public final void addCollectionChangeListener(NCollectionChangeListener listener)
listener - Event lispublic final void removeCollectionChangeListener(NCollectionChangeListener listener)
listener - Event lisCopyright © 2016 Neurotechnology. All rights reserved.