public class BaseList<E>
extends java.util.AbstractList<E>
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<E> |
list |
protected com.mindfusion.diagramming.ListEvent<E> |
listEvent |
protected boolean |
notifyParent |
Modifier | Constructor and Description |
---|---|
protected |
BaseList() |
protected |
BaseList(boolean notifyParent) |
protected |
BaseList(java.util.Collection<E> c) |
protected |
BaseList(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element)
Adds a new element to the list.
|
void |
clear()
Removes all elements from the list.
|
boolean |
contains(java.lang.Object element)
Determines if this list contains the specified element.
|
E |
first()
Gets the first element of this list.
|
E |
get(int index)
Gets the element at the specified position in this list.
|
E |
last()
Gets the last element of this list.
|
protected void |
raiseAdding(E item,
int index) |
protected void |
raiseClearing() |
protected void |
raiseRemoving(E item) |
void |
readExternal(java.io.ObjectInput in) |
E |
remove(int index) |
boolean |
remove(java.lang.Object element) |
void |
removeRange(int fromIndex,
int toIndex) |
E |
set(int index,
E element)
Sets the element at the specified position in this list.
|
int |
size() |
void |
writeExternal(java.io.ObjectOutput out) |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected java.util.ArrayList<E> list
protected boolean notifyParent
protected com.mindfusion.diagramming.ListEvent<E> listEvent
protected BaseList()
protected BaseList(int capacity)
protected BaseList(java.util.Collection<E> c)
protected BaseList(boolean notifyParent)
public int size()
public E get(int index)
public E first()
public E last()
public void add(int index, E element)
public E remove(int index)
public boolean remove(java.lang.Object element)
public void removeRange(int fromIndex, int toIndex)
removeRange
in class java.util.AbstractList<E>
public void clear()
public boolean contains(java.lang.Object element)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected void raiseAdding(E item, int index)
protected void raiseRemoving(E item)
protected void raiseClearing()