Package gov.nasa.worldwind.util
Class LruMemoryCache<K,V>
- java.lang.Object
-
- gov.nasa.worldwind.util.LruMemoryCache<K,V>
-
- Direct Known Subclasses:
RenderResourceCache
,SynchronizedMemoryCache
public class LruMemoryCache<K,V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LruMemoryCache(int capacity)
LruMemoryCache(int capacity, int lowWater)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(K key)
V
get(K key)
int
getCapacity()
int
getEntryCount()
int
getUsedCapacity()
V
put(K key, V value, int size)
V
remove(K key)
int
trimToAge(long maxAgeMillis)
-
-
-
Method Detail
-
getCapacity
public int getCapacity()
-
getUsedCapacity
public int getUsedCapacity()
-
getEntryCount
public int getEntryCount()
-
trimToAge
public int trimToAge(long maxAgeMillis)
-
containsKey
public boolean containsKey(K key)
-
clear
public void clear()
-
-