public abstract class NSimpleCollection<E> extends NAbstractCollection<E>
| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
cls |
owner| Modifier | Constructor and Description |
|---|---|
protected |
NSimpleCollection(Class<E> cls,
NObject owner) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
addCollectionChangedNative(HNObject hObject,
HNCallback hCallback) |
void |
addCollectionChangeListener(NCollectionChangeListener listener) |
protected int |
addInternal(E value) |
protected abstract void |
addPlainInternal(E value) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
protected abstract int |
addWithOutIndexInternal(E value) |
protected void |
clearInternal() |
protected abstract int |
clearNative(HNObject handle) |
void |
ensureCapacity(int minCapacity)
Ensures that the capacity of the collection is at least the specified value.
|
protected abstract int |
getAllInternal(E[] a) |
protected abstract E[] |
getAllOutInternal() |
protected abstract int |
getCapacityNative(HNObject handle,
com.sun.jna.ptr.IntByReference rValue) |
protected abstract com.neurotec.util.NSimpleReadOnlyCollection.ItemsToArray |
getItemsToList() |
protected abstract NTypes.TargetTransform |
getObjectToCollection() |
boolean |
removeAll(Collection<?> arg0) |
protected abstract int |
removeCollectionChangedNative(HNObject hObject,
HNCallback hCallback) |
void |
removeCollectionChangeListener(NCollectionChangeListener listener) |
int |
removeEx(Object o)
Remove an item from the collection returning the items location.
|
protected int |
removeInternal(E value) |
protected void |
removeInternal(int index) |
protected abstract int |
removeNative(HNObject handle,
int index) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
protected void |
removeRangeInternal(int index,
int count) |
protected abstract int |
removeRangeNative(HNObject handle,
int index,
int count) |
protected abstract int |
removeWithOutIndexInternal(E value) |
boolean |
retainAll(Collection<?> arg0) |
protected abstract int |
setCapacityNative(HNObject handle,
int value) |
int |
size()
Gets the size of the collection.
|
protected abstract int |
sizeNative(HNObject handle,
com.sun.jna.ptr.IntByReference rValue) |
protected boolean |
supportsAddWithOutIndex() |
protected boolean |
supportsCollectionChanged() |
protected boolean |
supportsEquality() |
protected boolean |
supportsGetAll() |
protected boolean |
supportsGetAllOut() |
protected boolean |
supportsRemoveByValue() |
protected boolean |
supportsRemoveRange() |
Object[] |
toArray()
Converts the current collection into an object array.
|
<T> T[] |
toArray(T[] a)
Converts the specified collection into an object array.
|
void |
trimToSize()
Sets the capacity to the actual number of elements in the collection.
|
add, add, addAll, addAll, addEx, addInternal, clear, contains, containsAll, get, getInternal, getModCount, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeRange, set, setInternal, subList, touchgetOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected boolean supportsEquality()
protected boolean supportsGetAll()
protected boolean supportsGetAllOut()
protected boolean supportsAddWithOutIndex()
protected boolean supportsRemoveByValue()
protected boolean supportsRemoveRange()
protected boolean supportsCollectionChanged()
protected final int addInternal(E value)
addInternal in class NAbstractCollection<E>protected void removeInternal(int index)
removeInternal in class NAbstractCollection<E>protected final int removeInternal(E value)
removeInternal in class NAbstractCollection<E>protected final void removeRangeInternal(int index,
int count)
removeRangeInternal in class NAbstractCollection<E>protected final void clearInternal()
clearInternal in class NAbstractCollection<E>protected abstract int getAllInternal(E[] a)
protected abstract E[] getAllOutInternal()
protected abstract void addPlainInternal(E value)
protected abstract int addWithOutIndexInternal(E value)
protected abstract int removeWithOutIndexInternal(E value)
protected abstract com.neurotec.util.NSimpleReadOnlyCollection.ItemsToArray getItemsToList()
protected abstract NTypes.TargetTransform getObjectToCollection()
protected abstract int sizeNative(HNObject handle, com.sun.jna.ptr.IntByReference rValue)
protected abstract int getCapacityNative(HNObject handle, com.sun.jna.ptr.IntByReference rValue)
protected abstract int setCapacityNative(HNObject handle, int value)
protected abstract int removeNative(HNObject handle, int index)
protected abstract int removeRangeNative(HNObject handle, int index, int count)
protected abstract int clearNative(HNObject handle)
protected abstract int addCollectionChangedNative(HNObject hObject, HNCallback hCallback)
protected abstract int removeCollectionChangedNative(HNObject hObject, HNCallback hCallback)
public final int removeEx(Object o)
NAbstractCollectionremoveEx in class NAbstractCollection<E>o - Item to be removed.public final boolean removeAll(Collection<?> arg0)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in class NAbstractCollection<E>public final boolean retainAll(Collection<?> arg0)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in class NAbstractCollection<E>public final int size()
public final void ensureCapacity(int minCapacity)
minCapacity - The minimum capacity.public final void trimToSize()
public final Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class NAbstractCollection<E>public final <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray in class NAbstractCollection<E>a - The specified collection.public final void addCollectionChangeListener(NCollectionChangeListener listener)
public final void removeCollectionChangeListener(NCollectionChangeListener listener)
public final void addPropertyChangeListener(PropertyChangeListener listener)
public final void removePropertyChangeListener(PropertyChangeListener listener)
Copyright © 2016 Neurotechnology. All rights reserved.