org.apache.jackrabbit.util
Class WeakIdentityCollection

WeakIdentityCollection implements a Collection with weak values.
Equality of elements is tested using the == operator.

This collection does not hide the fact that the garbage collector will remove
a mapping at some point in time. Thus, the Iterator returned
by this collection might return null values. The same applies
to the method toArray() in both its variants.

retainAll

iterator

Returns an Iterator over the elements of this
collection. The returned iterator is not fail-fast. That is, it does
not throw a ConcurrentModificationException if this
collection is modified while iterating over the collection.