Class SoftReferenceCache
- java.lang.Object
-
- org.apache.pdfbox.jbig2.util.cache.SoftReferenceCache
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Object,java.lang.ref.SoftReference<?>>
cache
-
Constructor Summary
Constructors Constructor Description SoftReferenceCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Removes all mappings from a map (optional operation).java.lang.Object
get(java.lang.Object key)
private java.lang.Object
getValueNullSafe(java.lang.ref.SoftReference<?> softReference)
java.lang.Object
put(java.lang.Object key, java.lang.Object value, int sizeEstimate)
java.lang.Object
remove(java.lang.Object key)
-
-
-
Method Detail
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value, int sizeEstimate)
-
clear
public void clear()
Description copied from interface:Cache
Removes all mappings from a map (optional operation).
-
remove
public java.lang.Object remove(java.lang.Object key)
-
getValueNullSafe
private java.lang.Object getValueNullSafe(java.lang.ref.SoftReference<?> softReference)
-
-