public final class NCollection extends NObjectPart implements List<Object>
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object e) |
boolean |
addAll(Collection<? extends Object> c) |
boolean |
addAll(int index,
Collection<? extends Object> c) |
void |
addAll(int index,
Object values)
Adds an array of elements to the collection at the specified index.
|
void |
addAll(int index,
Object[] values)
Adds an array of elements to the collection at the specified index.
|
int |
addAll(Object values)
Adds an array of elements to the collection.
|
int |
addAll(Object[] values)
Adds an array of elements to the collection.
|
void |
addCollectionChangeListener(NCollectionChangeListener listener)
Adds a listener for an event which occurs when collection is changed.
|
int |
addEx(Object e)
Adds an element to the collection.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
ensureCapacity(int minCapacity)
Checks whether the collection's capacity is more than or equal to the specified value, and increases it to the specified value if it is smaller.
|
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isReadOnly()
Cheks whether the array collection is read-only.
|
Iterator<Object> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NType |
nCollectionCollectionChangedCallbackNativeTypeOf()
Defines the native type of the "collection changed" callback.
|
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeCollectionChangeListener(NCollectionChangeListener listener)
Removes a listener for an event which occurs when collection is changed.
|
int |
removeEx(Object o)
Removes an element from the collection
|
void |
removeRange(int fromIndex,
int toIndex)
Removes a range of elements from the collection.
|
boolean |
retainAll(Collection<?> c) |
Object |
set(int index,
Object element) |
int |
size() |
List<Object> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
Object |
toItemArray()
Converts the collection to an item array.
|
void |
trimToSize()
Sets the collection capacity to be equal its current size.
|
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, finalizeequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic static NType nCollectionCollectionChangedCallbackNativeTypeOf()
public static NType nativeTypeOf()
public boolean isReadOnly()
public int size()
public boolean isEmpty()
public final void ensureCapacity(int minCapacity)
minCapacity - The minumum collection capacity.public final void trimToSize()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public Object toItemArray()
public boolean add(Object e)
public int addEx(Object e)
e - The element to add.public boolean remove(Object o)
public int removeEx(Object o)
o - The element to remove.public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Object>containsAll in interface List<Object>public boolean addAll(Collection<? extends Object> c)
public int addAll(Object[] values)
values - The array of elements to add.public int addAll(Object values)
values - An object representing the array of elements to add.public boolean addAll(int index,
Collection<? extends Object> c)
public void addAll(int index,
Object[] values)
index - Index at which the elements will be added.values - The array of elements to add.public void addAll(int index,
Object values)
index - Index at which the elements will be added.values - An object representing the array of elements to add.public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public void removeRange(int fromIndex,
int toIndex)
fromIndex - Index of the first element to remove.toIndex - Index of the first element to remove.public int lastIndexOf(Object o)
lastIndexOf in interface List<Object>public ListIterator<Object> listIterator()
listIterator in interface List<Object>public ListIterator<Object> listIterator(int index)
listIterator in interface List<Object>public final void addCollectionChangeListener(NCollectionChangeListener listener)
listener - Event lispublic final void removeCollectionChangeListener(NCollectionChangeListener listener)
listener - Event lisCopyright © 2016 Neurotechnology. All rights reserved.