public class TrackedAddSet<T>
extends java.lang.Object
implements java.util.function.Consumer<T>
| Constructor and Description |
|---|
TrackedAddSet() |
TrackedAddSet(int overrideMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T element)
Adds an element to this set.
|
java.util.Set<T> |
resetReturningAdded()
Clears the new elements, returning only those.
|
java.util.Set<T> |
resetReturningAll()
Clears the new elements and returns all elements.
|
public TrackedAddSet()
public TrackedAddSet(int overrideMaxSize)
public java.util.Set<T> resetReturningAdded()
public java.util.Set<T> resetReturningAll()