public class TrackingSet<T> extends AbstractSet<T>
| Modifier and Type | Field and Description |
|---|---|
protected Set<T> |
delegate |
protected SetDiff<T> |
diff |
| Constructor and Description |
|---|
TrackingSet(Set<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
SetDiff<T> |
getDiff() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
void |
restore() |
int |
size() |
equals, hashCode, removeAlladdAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic void restore()
public boolean add(T e)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean remove(Object o)
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 © 2018. All rights reserved.