Class TrackingSet<T>
java.lang.Object
java.util.AbstractCollection<T>
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 AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface 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
-