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>
 
 public class DirtyCollection<E> extends Object implements Collection<E> ACollectiondecorator that notifies the providedDirtyListenerwhen one ore more elements are removed.
- 
- 
Constructor SummaryConstructors Constructor Description DirtyCollection(Collection<E> delegate, DirtyListener listener)Builds a new DirtyCollection delegating to the given Collection and notifying the provided observer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)inthashCode()booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, spliterator, stream, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
DirtyCollectionpublic DirtyCollection(Collection<E> delegate, DirtyListener listener) Builds a new DirtyCollection delegating to the given Collection and notifying the provided observer.- Parameters:
- delegate- Collection delegate
- listener- change observer
 
 
- 
 - 
Method Detail- 
sizepublic int size() - Specified by:
- sizein interface- Collection<E>
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- Collection<E>
 
 - 
containspublic boolean contains(Object o) - Specified by:
- containsin interface- Collection<E>
 
 - 
toArraypublic Object[] toArray() - Specified by:
- toArrayin interface- Collection<E>
 
 - 
toArraypublic <T> T[] toArray(T[] a) - Specified by:
- toArrayin interface- Collection<E>
 
 - 
addpublic boolean add(E e) - Specified by:
- addin interface- Collection<E>
 
 - 
removepublic boolean remove(Object o) - Specified by:
- removein interface- Collection<E>
 
 - 
containsAllpublic boolean containsAll(Collection<?> c) - Specified by:
- containsAllin interface- Collection<E>
 
 - 
addAllpublic boolean addAll(Collection<? extends E> c) - Specified by:
- addAllin interface- Collection<E>
 
 - 
removeAllpublic boolean removeAll(Collection<?> c) - Specified by:
- removeAllin interface- Collection<E>
 
 - 
retainAllpublic boolean retainAll(Collection<?> c) - Specified by:
- retainAllin interface- Collection<E>
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- Collection<E>
 
 - 
equalspublic boolean equals(Object o) - Specified by:
- equalsin interface- Collection<E>
- Overrides:
- equalsin class- Object
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- Collection<E>
- Overrides:
- hashCodein class- Object
 
 
- 
 
-