Class DirtyCollection<E>
java.lang.Object
org.forgerock.openig.session.jwt.dirty.DirtyCollection<E>
- Type Parameters:
 E- type of the collection
- All Implemented Interfaces:
 Iterable<E>,Collection<E>
A 
Collection decorator that notifies the provided DirtyListener when one ore more elements are
 removed.- 
Constructor Summary
ConstructorsConstructorDescriptionDirtyCollection(Collection<E> delegate, DirtyListener listener) Builds a new DirtyCollection delegating to the given Collection and notifying the provided observer. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray 
- 
Constructor Details
- 
DirtyCollection
Builds a new DirtyCollection delegating to the given Collection and notifying the provided observer.- Parameters:
 delegate- Collection delegatelistener- change observer
 
 - 
 - 
Method Details
- 
size
public int size()- Specified by:
 sizein interfaceCollection<E>
 - 
isEmpty
public boolean isEmpty()- Specified by:
 isEmptyin interfaceCollection<E>
 - 
contains
- Specified by:
 containsin interfaceCollection<E>
 - 
iterator
 - 
toArray
- Specified by:
 toArrayin interfaceCollection<E>
 - 
toArray
public <T> T[] toArray(T[] a) - Specified by:
 toArrayin interfaceCollection<E>
 - 
add
- Specified by:
 addin interfaceCollection<E>
 - 
remove
- Specified by:
 removein interfaceCollection<E>
 - 
containsAll
- Specified by:
 containsAllin interfaceCollection<E>
 - 
addAll
- Specified by:
 addAllin interfaceCollection<E>
 - 
removeAll
- Specified by:
 removeAllin interfaceCollection<E>
 - 
retainAll
- Specified by:
 retainAllin interfaceCollection<E>
 - 
clear
public void clear()- Specified by:
 clearin interfaceCollection<E>
 - 
equals
- Specified by:
 equalsin interfaceCollection<E>- Overrides:
 equalsin classObject
 - 
hashCode
public int hashCode()- Specified by:
 hashCodein interfaceCollection<E>- Overrides:
 hashCodein classObject
 
 -