public class DataAreaChangeEventList extends Object implements List<DataArea>
List
that fires DataAreaChangeEvent
s.Modifier | Constructor and Description |
---|---|
|
DataAreaChangeEventList(DataAreaList dataAreaList,
List<DataArea> underlyingList)
Creates a new instance of this class.
|
protected |
DataAreaChangeEventList(List<DataArea> underlyingList)
This constructor is only meant to be used in
DataAreaList . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(DataArea element)
Appends the specified data area to the end of this list.
|
void |
add(int index,
DataArea element) |
boolean |
addAll(Collection<? extends DataArea> c) |
boolean |
addAll(int index,
Collection<? extends DataArea> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
DataArea |
get(int index) |
DataAreaList |
getDataAreaList() |
protected List<DataArea> |
getUnderlyingList() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<DataArea> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<DataArea> |
listIterator() |
ListIterator<DataArea> |
listIterator(int index) |
DataArea |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
DataArea |
set(int index,
DataArea element) |
int |
size() |
List<DataArea> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
protected DataAreaChangeEventList(List<DataArea> underlyingList)
DataAreaList
. It creates a new instance of this
class using the class itself as the data area list.underlyingList
- the list object that stored the data areaspublic DataAreaChangeEventList(DataAreaList dataAreaList, List<DataArea> underlyingList)
dataAreaList
- the data area list object that contains the data areas that will be inserted
removed or replaced by the new instanceunderlyingList
- the list object that stored the data areaspublic DataAreaList getDataAreaList()
protected List<DataArea> getUnderlyingList()
public boolean add(DataArea element)
element
.public boolean addAll(Collection<? extends DataArea> c)
public boolean addAll(int index, Collection<? extends DataArea> c)
public void clear()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<DataArea>
containsAll
in interface List<DataArea>
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<DataArea>
public ListIterator<DataArea> listIterator()
listIterator
in interface List<DataArea>
public ListIterator<DataArea> listIterator(int index)
listIterator
in interface List<DataArea>
public int size()