Class LRU<K,V>
java.lang.Object
org.glassfish.jersey.internal.util.collection.LRU<K,V>
- Type Parameters:
K
- Key typeV
- Value type
An abstract LRU interface wrapping an actual LRU implementation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LRU
public LRU()
-
-
Method Details
-
getIfPresent
Returns the value associated withkey
in this cache, ornull
if there is no cached value forkey
. -
put
Associatesvalue
withkey
in this cache. If the cache previously contained a value associated withkey
, the old value is replaced byvalue
. -
create
Create new LRU- Returns:
- new LRU
-