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
Constructors -
Method Summary
-
Constructor Details
-
LRU
public LRU()
-
-
Method Details
-
getIfPresent
Returns the value associated withkeyin this cache, ornullif there is no cached value forkey. -
put
Associatesvaluewithkeyin this cache. If the cache previously contained a value associated withkey, the old value is replaced byvalue. -
create
Create new LRU- Returns:
- new LRU
-