public interface TrackableCollectionIF<E> extends Collection<E>
Modifier and Type | Method and Description |
---|---|
boolean |
addWithTracking(E item)
INTERNAL: Adds the item to the collection tracking the change.
|
void |
clearWithTracking()
INTERNAL: Removes all items from the collection tracking the
changes.
|
Collection<E> |
getAdded()
INTERNAL: Gets the objects that have been added to the set.
|
Collection<E> |
getRemoved()
INTERNAL: Gets the objects that have been removed from the
set.
|
boolean |
removeWithTracking(E item)
INTERNAL: Removes the item from the collection tracking the
change.
|
void |
resetTracking()
INTERNAL: Clears the list of added and removed objects without
touching the original collection.
|
void |
selfAdded()
INTERNAL: Consider existing collection elements as having just
been added.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
void resetTracking()
void selfAdded()
boolean addWithTracking(E item)
boolean removeWithTracking(E item)
void clearWithTracking()
Collection<E> getAdded()
Collection<E> getRemoved()