org.lobobrowser.util

Class LRUCache

Implemented Interfaces:
java.io.Serializable

public class LRUCache
extends java.lang.Object
implements java.io.Serializable

A cache with least-recently-used policy. Note that this class is not thread safe by itself.
See Also:
Serialized Form

Constructor Summary

LRUCache(int approxMaxSize)

Method Summary

Object
get(Object key)
void
put(Object key, Object value, int approxSize)

Constructor Details

LRUCache

public LRUCache(int approxMaxSize)

Method Details

get

public Object get(Object key)

put

public void put(Object key,
                Object value,
                int approxSize)