public final class NArrayCollection 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) |
boolean |
addAllElements(int baseIndex,
Collection<? extends Object> c)
Adds a collection of elements to the specified array.
|
boolean |
addAllElements(int baseIndex,
int index,
Collection<? extends Object> c)
Adds a collection of elements to the specified array at the specified index.
|
void |
addAllElements(int baseIndex,
int index,
Object values)
Adds an array of elements to the specified array.
|
void |
addAllElements(int baseIndex,
int index,
Object[] values)
Adds an array of elements to the specified array.
|
int |
addAllElements(int baseIndex,
Object values)
Adds an array of elements to the specified array.
|
int |
addAllElements(int baseIndex,
Object[] values)
Adds an array of elements to the specified array.
|
void |
addElement(int baseIndex,
int index,
Object element)
Adds an element to the array at the specified index.
|
int |
addElement(int baseIndex,
Object e)
Adds a new element to the specified array.
|
void |
clear() |
void |
clearElement(int baseIndex)
Clears all elements from the specified array.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
containsElement(int baseIndex,
Object o)
Checks whether the array contains the specified value.
|
Object[] |
get(int index) |
Object |
getElement(int baseIndex,
int index)
Retrieves the specified element.
|
int |
indexOf(Object o) |
int |
indexOfElement(int baseIndex,
Object o)
Retrieves the index of the specified element in the array.
|
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.
|
Object[] |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
Object |
removeElement(int baseIndex,
int index)
Removes the specified element from the array.
|
int |
removeElement(int baseIndex,
Object o)
Removes an element from the specified array.
|
void |
removeElementRange(int baseIndex,
int fromIndex,
int toIndex)
Removes a range of element from the array.
|
boolean |
retainAll(Collection<?> c) |
Object[] |
set(int index,
Object[] element) |
Object |
setElement(int baseIndex,
int index,
Object element)
Sets the value of the specified element.
|
int |
size() |
int |
size(int baseIndex)
Gets the size of the specified array.
|
List<Object[]> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
Object[] |
toElementArray(int baseIndex)
Converts the specified array of the collection into an independent array.
|
<T> T[] |
toElementArray(int baseIndex,
T[] a)
Copies the specified array of the collection into an independent array.
|
Object |
toElementItemArray(int baseIndex)
Converts the specified array of the collection into an independent array.
|
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, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic static NType nativeTypeOf()
public boolean isReadOnly()
public int size()
public boolean isEmpty()
public int size(int baseIndex)
baseIndex - Index of the array in the collection.public boolean containsElement(int baseIndex,
Object o)
baseIndex - Index of the array in the collection.o - The value to find.public Object[] toElementArray(int baseIndex)
baseIndex - Index of the array in the collection.public <T> T[] toElementArray(int baseIndex,
T[] a)
baseIndex - Index of the array in the collection.a - The array to copy to.public Object toElementItemArray(int baseIndex)
baseIndex - Index of the array in the collection.public int addElement(int baseIndex,
Object e)
baseIndex - Index of the array in the collection.e - The element to add.public int removeElement(int baseIndex,
Object o)
baseIndex - Index of the array in the collection.o - The element to remove.public boolean addAllElements(int baseIndex,
Collection<? extends Object> c)
baseIndex - Index of the array in the collection.c - Collection of elements to add.public int addAllElements(int baseIndex,
Object[] values)
baseIndex - Index of the array in the collection.values - An array of elements to add.public int addAllElements(int baseIndex,
Object values)
baseIndex - Index of the array in the collection.values - An object representing an array of elements to add.public boolean addAllElements(int baseIndex,
int index,
Collection<? extends Object> c)
baseIndex - Index of the array in the collection.index - Index in the array at which to add the data.c - Collection of elements to add.public void addAllElements(int baseIndex,
int index,
Object[] values)
baseIndex - Index of the array in the collection.index - Index in the array at which to add the data.values - An array of elements to add.public void addAllElements(int baseIndex,
int index,
Object values)
baseIndex - Index of the array in the collection.index - Index in the array at which to add the data.values - An object representing an array of elements to add.public void clearElement(int baseIndex)
baseIndex - Index of the array in the collection.public Object getElement(int baseIndex, int index)
baseIndex - Index of the array in the collection.index - Index of the element in the array.public Object setElement(int baseIndex, int index, Object element)
baseIndex - Index of the array in the collection.index - Index of the element in the array.element - New value of the element.public void addElement(int baseIndex,
int index,
Object element)
baseIndex - Index of the array in the collection.index - Index in the array at which the element will be added.element - Element to add.public Object removeElement(int baseIndex, int index)
baseIndex - Index of the array in the collection.index - Index of the element to remove.public void removeElementRange(int baseIndex,
int fromIndex,
int toIndex)
baseIndex - Index of the array in the collection.fromIndex - Index of the first element to remove.toIndex - Index of the last element to remove.public int indexOfElement(int baseIndex,
Object o)
baseIndex - Index of the array in the collection.o - Element to find the index of.public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Object[]>containsAll in interface List<Object[]>public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public ListIterator<Object[]> listIterator()
listIterator in interface List<Object[]>public ListIterator<Object[]> listIterator(int index)
listIterator in interface List<Object[]>public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object[] e)
public boolean remove(Object o)
public boolean addAll(Collection<? extends Object[]> c)
public boolean addAll(int index,
Collection<? extends Object[]> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<Object[]>Copyright © 2016 Neurotechnology. All rights reserved.