Package org.jsoup.helper
Class ChangeNotifyingArrayList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.jsoup.helper.ChangeNotifyingArrayList<E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess
public abstract class ChangeNotifyingArrayList<E> extends ArrayList<E>
Implementation of ArrayList that watches out for changes to the contents.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChangeNotifyingArrayList(int initialCapacity) -
Method Summary
Modifier and Type Method Description voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)voidclear()abstract voidonContentsChanged()Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)protected voidremoveRange(int fromIndex, int toIndex)booleanretainAll(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
-
Constructor Details
-
ChangeNotifyingArrayList
public ChangeNotifyingArrayList(int initialCapacity)
-
-
Method Details
-
onContentsChanged
public abstract void onContentsChanged() -
set
-
add
-
add
-
remove
-
remove
-
clear
public void clear() -
addAll
-
addAll
-
removeRange
protected void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classArrayList<E>
-
removeAll
-
retainAll
-