public class ListenerArrayList<E> extends ArrayList<E>
add(java.lang.Object)
, add(int, java.lang.Object)
,
addAll(java.util.Collection)
or addAll(int, java.util.Collection)
,
the old value in the event is null and the new value contains the value (or a collection of values).set(int, java.lang.Object)
,
the old/new values in the event correspond to the old/new values in the list.remove(java.lang.Object)
, remove(int)
,
ArrayList.removeAll(java.util.Collection)
or clear()
, the old value in the event contains the removed
value (or a collection of values) and the new value is null.T-Plan Robot Enterprise, (C) 2009-2025 T-Plan Limited. All rights reserved.
Constructor and Description |
---|
ListenerArrayList()
Constructs an empty list with an initial capacity of ten.
|
ListenerArrayList(Collection<? extends E> c)
Constructs a list containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
|
ListenerArrayList(int initialCapacity) |
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 |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
clear() |
E |
remove(int index) |
boolean |
remove(Object o) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListeners() |
E |
set(int index,
E element) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
parallelStream, stream
public ListenerArrayList(int initialCapacity)
public ListenerArrayList()
public ListenerArrayList(Collection<? extends E> c)
c
- the collection whose elements are to be placed into this listNullPointerException
- if the specified collection is nullpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListeners()
public boolean add(E e)
public void add(int index, E element)
public E remove(int index)
public boolean remove(Object o)
public void clear()
public boolean addAll(Collection<? extends E> c)