Top Methods
org.apache.pdfbox.jbig2.util.cache

public Interface Cache

Known Direct Implementers
org.apache.pdfbox.jbig2.util.cache.SoftReferenceCache

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Removes all mappings from a map (optional operation).

public Object
get(Object key)

public Object

Returns:

the old object, that was replaced if present. Otherwise null.
put
(Object
value to be used as key
key
,
Object
value to be stored
value
,
int
estimated size
sizeEstimate
)

public Object

Returns:

the removed object, if present. Otherwise null.
remove
(Object
the key of the to be removed object
key
)

Method Detail

clearback to summary
public void clear()

Removes all mappings from a map (optional operation).

Exceptions
UnsupportedOperationException:
if clear() is not supported by the map.
getback to summary
public Object get(Object key)
putback to summary
public Object put(Object key, Object value, int sizeEstimate)
Parameters
key:Object

value to be used as key

value:Object

value to be stored

sizeEstimate:int

estimated size

Returns:Object

the old object, that was replaced if present. Otherwise null.

removeback to summary
public Object remove(Object key)
Parameters
key:Object

the key of the to be removed object

Returns:Object

the removed object, if present. Otherwise null.