Class ObservableConvertingCollection<F, B, C extends ObservableCollection<B>>
java.lang.Object
java.util.AbstractCollection<F>
org.aksw.commons.collections.ConvertingCollection<F,B,C>
org.aksw.commons.collection.observable.ObservableConvertingCollection<F,B,C>
- All Implemented Interfaces:
Iterable<F>, Collection<F>, DeltaCollection<F>, ObservableCollection<F>
public class ObservableConvertingCollection<F, B, C extends ObservableCollection<B>>
extends ConvertingCollection<F,B,C>
implements ObservableCollection<F>
-
Field Summary
FieldsFields inherited from class ConvertingCollection
backend, converter -
Constructor Summary
ConstructorsConstructorDescriptionObservableConvertingCollection(C backend, com.google.common.base.Converter<B, F> converter) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends F> c) Whether to notify listenersvoidclear()protected static <F,B> Collection <F> convert(Collection<B> set, com.google.common.base.Converter<B, F> converter) Used only in the event adaptions belowstatic <F, B, C extends Collection<B>>
CollectionChangedEvent<F> convertEvent(Object self, CollectionChangedEvent<B> ev, com.google.common.base.Converter<B, F> converter) booleandelta(Collection<? extends F> rawAdditions, Collection<?> rawRemovals) Apply a delta thereby firing only a single eventprotected booleanbooleanbooleanremoveAll(Collection<?> c) Methods inherited from class ConvertingCollection
contains, convertRaw, createSafe, getBackend, iterator, sizeMethods inherited from class AbstractCollection
containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface DeltaCollection
replaceMethods inherited from interface ObservableCollection
convert, filter, map, mapToValue, mapToValue
-
Field Details
-
vcs
-
pcs
-
-
Constructor Details
-
ObservableConvertingCollection
-
-
Method Details
-
isDuplicateAwareBackend
protected boolean isDuplicateAwareBackend() -
delta
Description copied from interface:DeltaCollectionApply a delta thereby firing only a single event- Specified by:
deltain interfaceDeltaCollection<F>
-
add
- Specified by:
addin interfaceCollection<F>- Overrides:
addin classConvertingCollection<F, B, C extends ObservableCollection<B>>
-
addAll
- Specified by:
addAllin interfaceCollection<F>- Overrides:
addAllin classAbstractCollection<F>
-
remove
- Specified by:
removein interfaceCollection<F>- Overrides:
removein classConvertingCollection<F, B, C extends ObservableCollection<B>>
-
removeAll
- Specified by:
removeAllin interfaceCollection<F>- Overrides:
removeAllin classAbstractCollection<F>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<F>- Overrides:
clearin classAbstractCollection<F>
-
convert
protected static <F,B> Collection<F> convert(Collection<B> set, com.google.common.base.Converter<B, F> converter) Used only in the event adaptions below -
convertEvent
public static <F, B, C extends Collection<B>> CollectionChangedEvent<F> convertEvent(Object self, CollectionChangedEvent<B> ev, com.google.common.base.Converter<B, F> converter) -
addVetoableChangeListener
Description copied from interface:ObservableCollectionWhether to notify listeners- Specified by:
addVetoableChangeListenerin interfaceObservableCollection<F>
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceObservableCollection<F>
-