Class ChangeNotifyingArrayList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<E>
-
- com.itextpdf.styledxmlparser.jsoup.helper.ChangeNotifyingArrayList<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>,java.util.RandomAccess
- Direct Known Subclasses:
Element.NodeList
public abstract class ChangeNotifyingArrayList<E> extends java.util.ArrayList<E>Implementation of ArrayList that watches out for changes to the contents.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeNotifyingArrayList(int initialCapacity)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, java.util.Collection<? extends E> c)booleanaddAll(java.util.Collection<? extends E> c)voidclear()abstract voidonContentsChanged()Eremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)protected voidremoveRange(int fromIndex, int toIndex)booleanretainAll(java.util.Collection<?> c)Eset(int index, E element)-
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
onContentsChanged
public abstract void onContentsChanged()
-
add
public boolean add(E e)
-
add
public void add(int index, E element)
-
remove
public E remove(int index)
-
remove
public boolean remove(java.lang.Object o)
-
clear
public void clear()
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
-
removeRange
protected void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classjava.util.ArrayList<E>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
-