Package com.uc4.util
Class ArrayListDecorator<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- com.uc4.util.ArrayListDecorator<T>
-
- Type Parameters:
T
- Type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
,java.util.RandomAccess
public class ArrayListDecorator<T> extends java.util.ArrayList<T>
Adds notification behavior tojava.util.ArrayList
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayListDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int arg0, T arg1)
boolean
add(T arg0)
boolean
addAll(java.util.Collection<? extends T> c)
T
remove(int arg0)
boolean
remove(java.lang.Object arg0)
void
setListener(IChangeListener listener)
Sets the listener.-
Methods inherited from class java.util.ArrayList
addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
setListener
public void setListener(IChangeListener listener)
Sets the listener.- Parameters:
listener
- Listener
-
addAll
public boolean addAll(java.util.Collection<? extends T> c)
-
add
public void add(int arg0, T arg1)
-
add
public boolean add(T arg0)
-
remove
public T remove(int arg0)
-
-