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
,SequencedCollection<E>
public abstract class ChangeNotifyingArrayList<E> extends ArrayList<E>
Implementation of ArrayList that watches out for changes to the contents.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.ArrayList
addFirst, addLast, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeFirst, removeIf, removeLast, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
Method Details
-
onContentsChanged
public abstract void onContentsChanged() -
set
-
add
-
add
-
remove
-
remove
public boolean remove(Object o) -
clear
public void clear() -
addAll
-
addAll
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
-
removeRange
in classArrayList<E>
-
removeAll
public boolean removeAll(Collection<?> c) -
retainAll
public boolean retainAll(Collection<?> c)
-