ca.odell.glazedlists
Class BasicEventList<E>
- List, Serializable, EventList<E>
public final class BasicEventList<E>
implements Serializable
An
EventList
that wraps any simple
List
, such as
ArrayList
or
LinkedList
.
Unlike most
EventList
s, this class is
Serializable
. When
BasicEventList
is serialized, all of its elements are serialized
and all of its listeners that implement
Serializable
. Upon
deserialization, the new copy uses a different
lock
than its source
BasicEventList
.
EventList Overview |
Writable: | yes |
Concurrency: | thread ready, not thread safe |
Performance: | reads: O(1), writes O(1) amortized |
Memory: | O(N) |
Unit Tests: | N/A |
Issues: | N/A |
boolean | add(E element) -
|
void | add(int index, E element) -
|
boolean | addAll(E> collection) -
|
boolean | addAll(int index, E> collection) -
|
void | clear() -
|
E | get(int index) -
|
boolean | remove(Object element) -
|
E | remove(int index) -
|
boolean | removeAll(Collection> collection) -
|
boolean | retainAll(Collection> collection) -
|
E | set(int index, E element) -
|
int | size() -
|
T[] toArray , add , add , addAll , addAll , addListEventListener , clear , contains , containsAll , equals , get , getPublisher , getReadWriteLock , hashCode , indexOf , isEmpty , iterator , lastIndexOf , listIterator , listIterator , remove , remove , removeAll , removeListEventListener , retainAll , set , size , subList , toArray , toString |
BasicEventList
public BasicEventList()
BasicEventList
public BasicEventList(List list)
As of 2005/03/06, this constructor has been declared unsafe
because the source list is exposed. This allows it to be modified without
the required events being fired. This constructor has been replaced by
the factory method GlazedLists.eventList(Collection)
.
Creates a
BasicEventList
that uses the specified
List
as
the underlying implementation.
Warning: all editing to
the specified
List
must be done through via this
BasicEventList
interface. Otherwise this
BasicEventList
will
become out of sync and operations will fail.
BasicEventList
public BasicEventList(int initalCapacity)
Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2007-12-21 23:49