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 voidclear()booleancontainsKey(K key)Vget(K key)intgetCapacity()intgetEntryCount()intgetUsedCapacity()Vput(K key, V value, int size)Vremove(K key)inttrimToAge(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()
 
 - 
 
 -