public abstract class NAbstractCollection<E> extends NAbstractObjectPart implements List<E>
owner| Modifier | Constructor and Description |
|---|---|
protected |
NAbstractCollection(NObject owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds an item to the collection.
|
void |
add(int index,
E element)
Adds an item to the collection.
|
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
int |
addEx(E e)
Insert an item to the collection returning the insertion location.
|
protected abstract int |
addInternal(E value) |
protected abstract void |
addInternal(int index,
E value) |
void |
clear()
Empties the collection.
|
protected abstract void |
clearInternal() |
boolean |
contains(Object o)
Checks whether the collection contains a specified object.
|
boolean |
containsAll(Collection<?> c) |
E |
get(int index)
Returns the element at the specified location.
|
protected abstract E |
getInternal(int index) |
protected int |
getModCount() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index)
Removes the element at the specified location.
|
boolean |
remove(Object e)
Removes the element.
|
boolean |
removeAll(Collection<?> c) |
int |
removeEx(Object e)
Remove an item from the collection returning the items location.
|
protected int |
removeInternal(E value) |
protected abstract void |
removeInternal(int index) |
void |
removeRange(int fromIndex,
int toIndex) |
protected abstract void |
removeRangeInternal(int index,
int count) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element)
Sets the element at the specified location.
|
protected abstract void |
setInternal(int index,
E value) |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected void |
touch() |
getOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, size, sort, spliteratorparallelStream, removeIf, streamprotected NAbstractCollection(NObject owner)
protected void touch()
protected int getModCount()
protected abstract E getInternal(int index)
protected abstract void setInternal(int index,
E value)
protected abstract int addInternal(E value)
protected abstract void addInternal(int index,
E value)
protected abstract void removeInternal(int index)
protected abstract void removeRangeInternal(int index,
int count)
protected int removeInternal(E value)
protected abstract void clearInternal()
public final int addEx(E e)
e - Item to be added.public int removeEx(Object e)
e - Item to be removed.public final boolean add(E e)
public final void add(int index,
E element)
public final void clear()
public final E get(int index)
public final E remove(int index)
public final boolean remove(Object e)
public final void removeRange(int fromIndex,
int toIndex)
public boolean contains(Object o)
public final ListIterator<E> listIterator()
listIterator in interface List<E>public final ListIterator<E> listIterator(int index)
listIterator in interface List<E>public final boolean isEmpty()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public final int lastIndexOf(Object o)
lastIndexOf in interface List<E>Copyright © 2016 Neurotechnology. All rights reserved.