Class TrackingSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
org.aksw.commons.collections.tracker.TrackingSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
Set which tracks insertions and removals to another set
Can be used with maps by applying it to their .entrySet()
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, 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 java.util.Set
addAll, clear, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
diff
-
delegate
-
-
Constructor Details
-
TrackingSet
-
-
Method Details
-
getDiff
-
restore
public void restore() -
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceSet<T>- Overrides:
addin classAbstractCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceSet<T>- Overrides:
removein classAbstractCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceSet<T>- Specified by:
sizein classAbstractCollection<T>
-
iterator
-