Package org.forgerock.openig.jwt.dirty
Class DirtySet<E>
- java.lang.Object
-
- org.forgerock.http.util.SetDecorator<E>
-
- org.forgerock.openig.jwt.dirty.DirtySet<E>
-
- Type Parameters:
E- type of the set
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
public class DirtySet<E> extends org.forgerock.http.util.SetDecorator<E>ASetdecorator that notifies the providedDirtyListenerwhen one ore more elements are removed.
-
-
Constructor Summary
Constructors Constructor Description DirtySet(Set<E> set, DirtyListener listener)Constructs a new set decorator, wrapping the specified set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)-
Methods inherited from class org.forgerock.http.util.SetDecorator
add, addAll, contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Constructor Detail
-
DirtySet
public DirtySet(Set<E> set, DirtyListener listener)
Constructs a new set decorator, wrapping the specified set.- Parameters:
set- the set to wrap with the decorator.listener- the change observer
-
-
Method Detail
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
-