E - specifies the EMessageObject type stored in
this list.public abstract class EAbstractList<E extends EMessageObject> extends ArrayList<E> implements Serializable, Cloneable
EFieldList and EMessageList
classes, implementing the read-only functionality.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mReadOnlyFlag
When set to
true list may only be read from and
not updated. |
modCount| Modifier | Constructor and Description |
|---|---|
protected |
EAbstractList()
Creates an empty field list instance with an initial
capacity of ten.
|
protected |
EAbstractList(Collection<E> c)
Creates a list instance containing the same elements
as
c and in the order returned by the collection's
iterator. |
protected |
EAbstractList(int initialCapacity)
Creates an empty list instance with the specified
initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
isReadOnly()
Returns
true if this field list is read-only,
meaning this list may not be modified. |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super E> filter) |
protected void |
removeRange(int fromIndex,
int toIndex) |
void |
replaceAll(UnaryOperator<E> operator) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
void |
setReadOnly()
Marks this list as read-only.
|
void |
sort(Comparator<? super E> c) |
List<E> |
subList(int fromIndex,
int toIndex) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, size, spliterator, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streamprotected boolean mReadOnlyFlag
true list may only be read from and
not updated.protected EAbstractList()
protected EAbstractList(int initialCapacity)
initialCapacity - initial list capacity.protected EAbstractList(Collection<E> c)
c and in the order returned by the collection's
iterator.c - place this collection's element into this field
list.NullPointerException - if c is null.public void sort(Comparator<? super E> c)
sort in interface List<E extends EMessageObject>sort in class ArrayList<E extends EMessageObject>public List<E> subList(int fromIndex, int toIndex)
subList in interface List<E extends EMessageObject>subList in class ArrayList<E extends EMessageObject>public Iterator<E> iterator()
iterator in interface Iterable<E extends EMessageObject>iterator in interface Collection<E extends EMessageObject>iterator in interface List<E extends EMessageObject>iterator in class ArrayList<E extends EMessageObject>public ListIterator<E> listIterator()
listIterator in interface List<E extends EMessageObject>listIterator in class ArrayList<E extends EMessageObject>public ListIterator<E> listIterator(int index)
listIterator in interface List<E extends EMessageObject>listIterator in class ArrayList<E extends EMessageObject>public void add(int index,
E element)
add in interface List<E extends EMessageObject>add in class ArrayList<E extends EMessageObject>public boolean add(E e)
add in interface Collection<E extends EMessageObject>add in interface List<E extends EMessageObject>add in class ArrayList<E extends EMessageObject>public boolean addAll(int index,
Collection<? extends E> c)
addAll in interface List<E extends EMessageObject>addAll in class ArrayList<E extends EMessageObject>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E extends EMessageObject>addAll in interface List<E extends EMessageObject>addAll in class ArrayList<E extends EMessageObject>public E set(int index, E element)
set in interface List<E extends EMessageObject>set in class ArrayList<E extends EMessageObject>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E extends EMessageObject>retainAll in interface List<E extends EMessageObject>retainAll in class ArrayList<E extends EMessageObject>public void replaceAll(UnaryOperator<E> operator)
replaceAll in interface List<E extends EMessageObject>replaceAll in class ArrayList<E extends EMessageObject>public boolean remove(Object o)
remove in interface Collection<E extends EMessageObject>remove in interface List<E extends EMessageObject>remove in class ArrayList<E extends EMessageObject>public E remove(int index)
remove in interface List<E extends EMessageObject>remove in class ArrayList<E extends EMessageObject>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E extends EMessageObject>removeAll in interface List<E extends EMessageObject>removeAll in class ArrayList<E extends EMessageObject>protected void removeRange(int fromIndex,
int toIndex)
removeRange in class ArrayList<E extends EMessageObject>public boolean removeIf(Predicate<? super E> filter)
removeIf in interface Collection<E extends EMessageObject>removeIf in class ArrayList<E extends EMessageObject>public void clear()
clear in interface Collection<E extends EMessageObject>clear in interface List<E extends EMessageObject>clear in class ArrayList<E extends EMessageObject>public final boolean isReadOnly()
true if this field list is read-only,
meaning this list may not be modified.true if this field list is read-only.public final void setReadOnly()
Copyright © 2019. All rights reserved.