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,Set<T>>
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 ObservableCollectionBase
pcs, vcsFields inherited from class 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 ObservableCollectionBase
addVetoableChangeListener, convertMethods inherited from class ForwardingDeltaCollectionBase
getBackend, isDuplicateAwareBackend, iterator, sizeMethods inherited from class AbstractCollection
contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface DeltaCollection
replaceMethods inherited from interface ObservableCollection
addVetoableChangeListener, convert, filter, map, mapToValue, mapToValueMethods inherited from interface 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>
-