Class CacheEntries<K,V>

java.lang.Object
java.util.AbstractCollection<Map.Entry<K,V>>
java.util.AbstractSet<Map.Entry<K,V>>
org.apache.sis.util.collection.CacheEntries<K,V>
Type Parameters:
K - the type of key objects.
V - the type of value objects.
All Implemented Interfaces:
Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Set<Map.Entry<K,V>>

final class CacheEntries<K,V> extends AbstractSet<Map.Entry<K,V>>
The set of entries in the Cache.map. On iteration, handlers will be skipped and the values of weak references are returned instead of the Reference object.

This class is not needed for the normal working of Cache. it is used only if the user wants to see the cache entries through the standard Java collection API.

Thread safety

This class is thread-safe if and only if the Set given to the constructor is thread-safe.
Since:
0.3
Version:
0.3