public abstract class NAbstractArrayCollection<E,EBase> extends NAbstractReadOnlyCollection<E[]>
| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
cls |
owner| Modifier | Constructor and Description |
|---|---|
protected |
NAbstractArrayCollection(Class<E> cls,
NObject owner,
NAbstractCollection<EBase> baseCollection) |
| Modifier and Type | Method and Description |
|---|---|
int |
addElement(int baseIndex,
E value)
Adds an element to the specified array dimension.
|
void |
addElement(int baseIndex,
int index,
E value)
Adds a new array element with specified indexes and value.
|
protected abstract void |
addInternal(int baseIndex,
int index,
E value) |
protected abstract void |
addPlainInternal(int baseIndex,
E value) |
protected abstract int |
addWithOutIndexInternal(int baseIndex,
E value) |
void |
clearElement(int baseIndex)
Frees the specified array element.
|
protected abstract int |
clearNative(HNObject handle,
int baseIndex) |
boolean |
containsElement(int baseIndex,
E value)
Checks whether an array dimension contains the specified element.
|
int |
elementSize(int baseIndex)
Gets the size of the specified collection element.
|
void |
ensureCapacity(int baseIndex,
int minCapacity)
Ensures that the capacity of the specified collection dimension is at least the specified value.
|
protected abstract int |
getAllInternal(int baseIndex,
E[] a) |
protected abstract E[] |
getAllOutInternal(int baseIndex) |
protected abstract int |
getCapacityNative(HNObject handle,
int baseIndex,
com.sun.jna.ptr.IntByReference rValue) |
E |
getElement(int baseIndex,
int index)
Gets the specified array element.
|
protected E[] |
getInternal(int baseIndex) |
protected abstract E |
getInternal(int baseIndex,
int index) |
protected int |
getModCount() |
int |
indexOf(Object item)
Gets the index of the specified item.
|
int |
indexOfElement(int baseIndex,
E value)
Gets the second-dimension index of the element.
|
int |
removeElement(int baseIndex,
E value)
Removes the element with specified value and first-dimension index from the array.
|
E |
removeElement(int baseIndex,
int index)
Removes the element with specified indexes from the array.
|
void |
removeElementRange(int baseIndex,
int fromIndex,
int toIndex)
Removes a range of elements from the array.
|
protected abstract int |
removeNative(HNObject handle,
int baseIndex,
int index) |
protected abstract int |
removeRangeNative(HNObject handle,
int baseIndex,
int index,
int count) |
protected abstract int |
removeWithOutIndexInternal(int baseIndex,
E value) |
protected abstract int |
setCapacityNative(HNObject handle,
int baseIndex,
int value) |
void |
setElement(int baseIndex,
int index,
E value)
Sets the value of the specified element.
|
protected abstract void |
setInternal(int baseIndex,
int index,
E value) |
int |
size()
Gets the size of the collection.
|
protected abstract int |
sizeNative(HNObject handle,
int baseIndex,
com.sun.jna.ptr.IntByReference rValue) |
protected boolean |
supportsAddWithOutIndex() |
protected boolean |
supportsEquality() |
protected boolean |
supportsGetAll() |
protected boolean |
supportsGetAllOut() |
protected boolean |
supportsRemoveByValue() |
protected boolean |
supportsRemoveRange() |
E[] |
toElementArray(int baseIndex)
Converts an array dimension into an array.
|
<T> T[] |
toElementArray(int baseIndex,
T[] a)
Converts a dimension of the specified array into a new array.
|
protected void |
touch() |
void |
trimToSize(int baseIndex)
Sets the capacity to the actual number of elements in the collection.
|
add, add, addAll, addAll, clear, contains, containsAll, get, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, subList, toArray, toArraygetOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected NAbstractArrayCollection(Class<E> cls, NObject owner, NAbstractCollection<EBase> baseCollection)
protected boolean supportsEquality()
protected boolean supportsGetAll()
protected boolean supportsGetAllOut()
protected boolean supportsAddWithOutIndex()
protected boolean supportsRemoveByValue()
protected boolean supportsRemoveRange()
protected final E[] getInternal(int baseIndex)
getInternal in class NAbstractReadOnlyCollection<E[]>protected final void touch()
touch in class NAbstractReadOnlyCollection<E[]>protected final int getModCount()
getModCount in class NAbstractReadOnlyCollection<E[]>protected abstract E getInternal(int baseIndex, int index)
protected abstract int getAllInternal(int baseIndex,
E[] a)
protected abstract E[] getAllOutInternal(int baseIndex)
protected abstract void setInternal(int baseIndex,
int index,
E value)
protected abstract void addPlainInternal(int baseIndex,
E value)
protected abstract int addWithOutIndexInternal(int baseIndex,
E value)
protected abstract void addInternal(int baseIndex,
int index,
E value)
protected abstract int removeWithOutIndexInternal(int baseIndex,
E value)
protected abstract int sizeNative(HNObject handle, int baseIndex, com.sun.jna.ptr.IntByReference rValue)
protected abstract int getCapacityNative(HNObject handle, int baseIndex, com.sun.jna.ptr.IntByReference rValue)
protected abstract int setCapacityNative(HNObject handle, int baseIndex, int value)
protected abstract int removeNative(HNObject handle, int baseIndex, int index)
protected abstract int removeRangeNative(HNObject handle, int baseIndex, int index, int count)
protected abstract int clearNative(HNObject handle, int baseIndex)
public final int size()
public final int indexOf(Object item)
public final int elementSize(int baseIndex)
baseIndex - The index of the specified element.public final void ensureCapacity(int baseIndex,
int minCapacity)
baseIndex - The first-dimension index of the element.minCapacity - The minimum capacity.public final void trimToSize(int baseIndex)
public final E getElement(int baseIndex, int index)
baseIndex - The first-dimension index of the element.index - The second-dimension index of the element.public int indexOfElement(int baseIndex,
E value)
baseIndex - The first-dimension index of the element.value - The value of the element.public boolean containsElement(int baseIndex,
E value)
baseIndex - The first-dimension index of the element.value - The specified element.public final void setElement(int baseIndex,
int index,
E value)
baseIndex - The first-dimension index of the element.index - The second-dimension index of the element.value - The value of the element.public final int addElement(int baseIndex,
E value)
baseIndex - The first-dimension index of the element.value - The value of the new element.public final void addElement(int baseIndex,
int index,
E value)
baseIndex - The first-dimension index of the element.index - The second-dimension index of the element.value - The value of the new element.public final int removeElement(int baseIndex,
E value)
baseIndex - The first-dimension index of the element.value - The value of the element.public final E removeElement(int baseIndex, int index)
baseIndex - The first-dimension index of the element.index - The second-dimension index of the element.public final void removeElementRange(int baseIndex,
int fromIndex,
int toIndex)
baseIndex - The first-dimension index of the element range.fromIndex - The starting second-dimension index of the element range.toIndex - The final second-dimension index of the element range.public final void clearElement(int baseIndex)
baseIndex - The index of the element.public final E[] toElementArray(int baseIndex)
baseIndex - The first-dimension index of the array.public final <T> T[] toElementArray(int baseIndex,
T[] a)
baseIndex - The first-dimension index of the array.a - The specified array.Copyright © 2016 Neurotechnology. All rights reserved.