Class ObservableSetImpl<T>
java.lang.Object
java.util.AbstractCollection<T>
org.aksw.commons.collection.observable.DeltaCollectionBase<T,Collection<T>>
org.aksw.commons.collection.observable.ForwardingDeltaCollectionBase<T,C>
org.aksw.commons.collection.observable.ObservableCollectionBase<T,Set<T>>
org.aksw.commons.collection.observable.ObservableSetImpl<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>,DeltaCollection<T>,ObservableCollection<T>,ObservableSet<T>
public class ObservableSetImpl<T>
extends ObservableCollectionBase<T,Set<T>>
implements ObservableSet<T>
-
Field Summary
Fields inherited from class org.aksw.commons.collection.observable.ObservableCollectionBase
pcs, vcsFields inherited from class org.aksw.commons.collection.observable.ForwardingDeltaCollectionBase
backend -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ObservableSet<T>booleandelta(Collection<? extends T> rawAdditions, Collection<?> rawRemovals) Removals are carried out as given in order for linked collections to yield items in the right order.Methods inherited from class org.aksw.commons.collection.observable.ObservableCollectionBase
addVetoableChangeListener, convertMethods inherited from class org.aksw.commons.collection.observable.ForwardingDeltaCollectionBase
getBackend, isDuplicateAwareBackend, iterator, sizeMethods inherited from class org.aksw.commons.collection.observable.DeltaCollectionBase
add, addAll, clear, remove, removeAllMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, retainAll, 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
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.aksw.commons.collection.observable.DeltaCollection
replaceMethods inherited from interface org.aksw.commons.collection.observable.ObservableCollection
addVetoableChangeListener, convert, filter, map, mapToValue, mapToValueMethods inherited from interface org.aksw.commons.collection.observable.ObservableSet
fieldForPresence
-
Constructor Details
-
ObservableSetImpl
-
-
Method Details
-
decorate
-
delta
Removals are carried out as given in order for linked collections to yield items in the right order. Hence, even if an item to be removed is contained in the additions it will be removed first.- Specified by:
deltain interfaceDeltaCollection<T>
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceObservableCollection<T>
-