Package ghidra.util.datastruct
Class DefaultObservableCollection<E,L extends CollectionChangeListener<? super E>>
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
ghidra.util.datastruct.DefaultObservableCollection<E,L>
- All Implemented Interfaces:
ObservableCollection<E,,L> Serializable,Iterable<E>,Collection<E>
public class DefaultObservableCollection<E,L extends CollectionChangeListener<? super E>>
extends org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
implements ObservableCollection<E,L>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumprotected classprotected classNested classes/interfaces inherited from interface ghidra.util.datastruct.ObservableCollection
ObservableCollection.ChangeAggregator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final DefaultObservableCollection<E,L>.ChangeSet protected CollectionChangeListener<? super E> protected final ListenerSet<L> protected final Objectprotected final Collection<E> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultObservableCollection(Collection<E> wrapped, Class<L> listenerClass) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidaddChangeListener(L listener) voidclear()protected Collection<E> iterator()protected voidnotifyAdded(E e) voidnotifyModified(E e) protected voidnotifyRemoved(E e) booleanbooleanremoveAll(Collection<?> c) voidremoveChangeListener(L listener) booleanretainAll(Collection<?> c) Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
contains, containsAll, isEmpty, setCollection, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, removeIf, size, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
lock
-
listeners
-
wrapped
-
aggregatorCount
protected int aggregatorCount -
changes
protected final DefaultObservableCollection<E,L extends CollectionChangeListener<? super E>>.ChangeSet changes -
l
-
-
Constructor Details
-
DefaultObservableCollection
-
-
Method Details
-
decorated
- Overrides:
decoratedin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
addChangeListener
- Specified by:
addChangeListenerin interfaceObservableCollection<E,L extends CollectionChangeListener<? super E>>
-
removeChangeListener
- Specified by:
removeChangeListenerin interfaceObservableCollection<E,L extends CollectionChangeListener<? super E>>
-
iterator
-
add
- Specified by:
addin interfaceCollection<E>- Overrides:
addin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
remove
- Specified by:
removein interfaceCollection<E>- Overrides:
removein classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Overrides:
removeAllin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Overrides:
retainAllin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classorg.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
notifyAdded
-
notifyModified
- Specified by:
notifyModifiedin interfaceObservableCollection<E,L extends CollectionChangeListener<? super E>>
-
notifyRemoved
-
aggregateChanges
- Specified by:
aggregateChangesin interfaceObservableCollection<E,L extends CollectionChangeListener<? super E>>
-