public class DeltaSet<T> extends AbstractSet<T>
| Constructor and Description |
|---|
DeltaSet(Set<T> base)
Creates a
DeltaSet with the given base set. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
void |
clear() |
boolean |
contains(Object o) |
Set<T> |
getAdditions()
Returns the additions that have been applied to this set.
|
Set<T> |
getRemovals()
Returns the removals that have been applied to this set.
|
Iterator<T> |
iterator() |
boolean |
remove(Object e) |
void |
reset()
Clears all the changes tracked resetting the contents of this set to the base set.
|
int |
size() |
equals, hashCode, removeAlladdAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic void reset()
public Set<T> getAdditions()
public Set<T> getRemovals()
public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public boolean add(T e)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean remove(Object e)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>Copyright © 2019. All rights reserved.