public class BeanChangesArrayList
extends java.util.ArrayList
| Modifier and Type | Field and Description |
|---|---|
protected jadex.commons.SimplePropertyChangeSupport |
pcs
The proerty change thrower.
|
| Constructor and Description |
|---|
BeanChangesArrayList()
Create a new array list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object o)
Inserts the specified element at the specified position in this
list.
|
boolean |
add(java.lang.Object o)
Appends the specified element to the end of this list.
|
boolean |
addAll(java.util.Collection collection)
Appends all of the elements in the specified Collection to the end of
this list, in the order that they are returned by the
specified Collection's Iterator.
|
boolean |
addAll(int index,
java.util.Collection collection)
Inserts all of the elements in the specified Collection into this
list, starting at the specified position.
|
void |
addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
boolean |
equals(java.lang.Object o)
Identity required for rete.
|
java.lang.Object |
getList()
Get the list of elements.
|
int |
getSize() |
int |
hashCode()
Constant hashcode required for rete.
|
void |
modified()
Indicate that the list has changed.
|
java.lang.Object |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this
list, if it is present (optional operation).
|
void |
removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
removeRange(int fromIndex,
int toIndex)
Removes from this List all of the elements whose index is between
fromIndex, inclusive and toIndex, exclusive.
|
java.lang.Object |
set(int index,
java.lang.Object o)
Replaces the element at the specified position in this list with
the specified element.
|
void |
setList(java.lang.Object list)
Set the list of elements.
|
clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeprotected jadex.commons.SimplePropertyChangeSupport pcs
public int getSize()
public java.lang.Object set(int index,
java.lang.Object o)
set in interface java.util.Listset in class java.util.ArrayListindex - index of element to replace.o - element to be stored at the specified position.java.lang.IndexOutOfBoundsException - if index out of range
(index < 0 || index >= size()).public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListo - element to be appended to this list.public void add(int index,
java.lang.Object o)
add in interface java.util.Listadd in class java.util.ArrayListindex - index at which the specified element is to be inserted.o - element to be inserted.java.lang.IndexOutOfBoundsException - if index is out of range
(index < 0 || index > size()).public java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.ArrayListindex - the index of the element to removed.java.lang.IndexOutOfBoundsException - if index out of range (index
< 0 || index >= size()).public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class java.util.ArrayListo - element to be removed from this list, if present.public boolean addAll(java.util.Collection collection)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.ArrayListcollection - the elements to be inserted into this list.java.lang.NullPointerException - if the specified collection is null.public boolean addAll(int index,
java.util.Collection collection)
addAll in interface java.util.ListaddAll in class java.util.ArrayListindex - index at which to insert first element
from the specified collection.collection - elements to be inserted into this list.java.lang.IndexOutOfBoundsException - if index out of range (index
< 0 || index > size()).java.lang.NullPointerException - if the specified Collection is null.public void removeRange(int fromIndex,
int toIndex)
removeRange in class java.util.ArrayListfromIndex - index of first element to be removed.toIndex - index after last element to be removed.public void addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener to be added.public void removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener to be removed.public void modified()
public java.lang.Object getList()
public void setList(java.lang.Object list)
public int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.util.AbstractListpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.util.AbstractList