Class ObservableSetUnion<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
org.aksw.commons.collection.observable.ObservableSetUnion<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>,DeltaCollection<T>,ObservableCollection<T>,ObservableSet<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhether to notify listenersstatic <T> CollectionChangedEvent<T>convertEvent(Object self, CollectionChangedEvent<T> ev, Set<T> other) static <T> PropertyChangeListenerconvertListener(Object self, Set<T> other, PropertyChangeListener listener) static <T> VetoableChangeListenerconvertListener(Object self, Set<T> other, VetoableChangeListener listener) static <T> ObservableSet<T>create(ObservableSet<T> a, ObservableSet<T> b) booleandelta(Collection<? extends T> additions, Collection<?> removals) Apply a delta thereby firing only a single eventiterator()static voidprotected static <T> Set<T>nullSafeDifference(Set<T> set, Set<T> other) intsize()Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, 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
convert, filter, map, mapToValue, mapToValueMethods inherited from interface org.aksw.commons.collection.observable.ObservableSet
fieldForPresence
-
Field Details
-
lhs
-
rhs
-
effectiveSet
-
-
Constructor Details
-
ObservableSetUnion
-
-
Method Details
-
delta
Description copied from interface:DeltaCollectionApply a delta thereby firing only a single event- Specified by:
deltain interfaceDeltaCollection<T>
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceObservableCollection<T>
-
addVetoableChangeListener
Description copied from interface:ObservableCollectionWhether to notify listeners- Specified by:
addVetoableChangeListenerin interfaceObservableCollection<T>
-
convertListener
public static <T> VetoableChangeListener convertListener(Object self, Set<T> other, VetoableChangeListener listener) -
convertListener
public static <T> PropertyChangeListener convertListener(Object self, Set<T> other, PropertyChangeListener listener) -
nullSafeDifference
-
convertEvent
public static <T> CollectionChangedEvent<T> convertEvent(Object self, CollectionChangedEvent<T> ev, Set<T> other) -
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceSet<T>- Specified by:
sizein classAbstractCollection<T>
-
create
-
main
-