@Authors(value="Nikolche Mihajlovski") @Since(value="5.2.0") public class ChangeTrackingCollection<E> extends AbstractCollectionDecorator<E>
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
dirtyFlag |
decorated| Constructor and Description |
|---|
ChangeTrackingCollection(Collection<E> decorated,
AtomicBoolean dirtyFlag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
protected boolean |
changedIf(boolean changed) |
void |
clear() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
contains, containsAll, isEmpty, size, toArray, toArraydecorated, equals, hashCode, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected final AtomicBoolean dirtyFlag
public ChangeTrackingCollection(Collection<E> decorated, AtomicBoolean dirtyFlag)
public boolean add(E e)
add in interface Collection<E>add in class AbstractCollectionDecorator<E>public boolean remove(Object o)
remove in interface Collection<E>remove in class AbstractCollectionDecorator<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in class AbstractCollectionDecorator<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in class AbstractCollectionDecorator<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in class AbstractCollectionDecorator<E>public void clear()
clear in interface Collection<E>clear in class AbstractCollectionDecorator<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in class AbstractCollectionDecorator<E>protected boolean changedIf(boolean changed)
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.