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, trimToSize
protected jadex.commons.SimplePropertyChangeSupport pcs
public int getSize()
public java.lang.Object set(int index, java.lang.Object o)
set
in interface java.util.List
set
in class java.util.ArrayList
index
- 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.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
o
- element to be appended to this list.public void add(int index, java.lang.Object o)
add
in interface java.util.List
add
in class java.util.ArrayList
index
- 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.List
remove
in class java.util.ArrayList
index
- 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.Collection
remove
in interface java.util.List
remove
in class java.util.ArrayList
o
- element to be removed from this list, if present.public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
collection
- 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.List
addAll
in class java.util.ArrayList
index
- 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.ArrayList
fromIndex
- 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.Collection
hashCode
in interface java.util.List
hashCode
in class java.util.AbstractList
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList