Package gov.nasa.worldwind.util
Class SynchronizedMemoryCache<K,V>
- java.lang.Object
-
- gov.nasa.worldwind.util.LruMemoryCache<K,V>
-
- gov.nasa.worldwind.util.SynchronizedMemoryCache<K,V>
-
public class SynchronizedMemoryCache<K,V> extends LruMemoryCache<K,V>
-
-
Constructor Summary
Constructors Constructor Description SynchronizedMemoryCache(int capacity)
SynchronizedMemoryCache(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 timeMillis)
-
-
-
Method Detail
-
getCapacity
public int getCapacity()
- Overrides:
getCapacity
in classLruMemoryCache<K,V>
-
getUsedCapacity
public int getUsedCapacity()
- Overrides:
getUsedCapacity
in classLruMemoryCache<K,V>
-
getEntryCount
public int getEntryCount()
- Overrides:
getEntryCount
in classLruMemoryCache<K,V>
-
trimToAge
public int trimToAge(long timeMillis)
- Overrides:
trimToAge
in classLruMemoryCache<K,V>
-
containsKey
public boolean containsKey(K key)
- Overrides:
containsKey
in classLruMemoryCache<K,V>
-
clear
public void clear()
- Overrides:
clear
in classLruMemoryCache<K,V>
-
-