public abstract class NSimpleReadOnlyCollection<E> extends NAbstractReadOnlyCollection<E>
| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
cls |
owner| Modifier | Constructor and Description |
|---|---|
protected |
NSimpleReadOnlyCollection(Class<E> cls,
NObject owner) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
addCollectionChangedNative(HNObject hObject,
HNCallback hCallback) |
void |
addCollectionChangeListener(NCollectionChangeListener listener) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
protected abstract int |
getAllInternal(E[] a) |
protected abstract E[] |
getAllOutInternal() |
protected abstract com.neurotec.util.NSimpleReadOnlyCollection.ItemsToArray |
getItemsToList() |
protected abstract NTypes.TargetTransform |
getObjectToCollection() |
protected abstract int |
removeCollectionChangedNative(HNObject hObject,
HNCallback hCallback) |
void |
removeCollectionChangeListener(NCollectionChangeListener listener) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
int |
size()
Gets the size of the collection.
|
protected abstract int |
sizeNative(HNObject handle,
com.sun.jna.ptr.IntByReference rValue) |
protected boolean |
supportsCollectionChanged() |
protected boolean |
supportsGetAll() |
protected boolean |
supportsGetAllOut() |
Object[] |
toArray()
Converts the collection into an object array.
|
<T> T[] |
toArray(T[] a)
Converts the specified collection into an object array.
|
add, add, addAll, addAll, clear, contains, containsAll, get, getInternal, getModCount, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, subList, touchgetOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected boolean supportsGetAll()
protected boolean supportsGetAllOut()
protected boolean supportsCollectionChanged()
protected abstract int getAllInternal(E[] a)
protected abstract E[] getAllOutInternal()
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 addCollectionChangedNative(HNObject hObject, HNCallback hCallback)
protected abstract int removeCollectionChangedNative(HNObject hObject, HNCallback hCallback)
public final int size()
public final Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class NAbstractReadOnlyCollection<E>public final <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface List<E>toArray in class NAbstractReadOnlyCollection<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.