public abstract class NAbstractReadOnlyCollection<E> extends NAbstractObjectPart implements List<E>
owner| Modifier | Constructor and Description |
|---|---|
protected |
NAbstractReadOnlyCollection(NObject owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds an element to the collection.
|
void |
add(int index,
E element)
Adds an element with specified index to the collection.
|
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear()
Clears the collection.
|
boolean |
contains(Object o)
Checks whether the collection contains the object specified.
|
boolean |
containsAll(Collection<?> c) |
E |
get(int index)
Gets the specified collection element.
|
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 an element with specfied index from the collection
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeRange(int fromIndex,
int toIndex)
Removes a range of elements from the collection
|
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element)
Set the value of the specified element.
|
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 NAbstractReadOnlyCollection(NObject owner)
protected void touch()
protected int getModCount()
protected abstract E getInternal(int index)
public final boolean add(E e)
public final void add(int index,
E element)
public final void clear()
public final E remove(int index)
public final void removeRange(int fromIndex,
int toIndex)
fromIndex - The starting index of the range.toIndex - The final index of the range.public final E get(int index)
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 final boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public final boolean addAll(Collection<? extends E> c)
public final boolean addAll(int index,
Collection<? extends E> c)
public final boolean removeAll(Collection<?> c)
public final boolean retainAll(Collection<?> c)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>Copyright © 2016 Neurotechnology. All rights reserved.