Class Cache.Weak
java.lang.Object
java.lang.ref.Reference<V>
java.lang.ref.WeakReference<V>
org.apache.sis.util.collection.Cache.Weak
- All Implemented Interfaces:
Disposable
A weak reference which removes itself from the cache when the reference is garbage-collected.
- Since:
- 0.3
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Reference
clear, enqueue, get, isEnqueued
-
Field Details
-
key
The key of the referenced value.
-
-
Constructor Details
-
Weak
-
-
Method Details
-
dispose
public void dispose()Removes the reference from the map.- Specified by:
disposein interfaceDisposable
-