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 voidclear()booleancontainsKey(K key)Vget(K key)intgetCapacity()intgetEntryCount()intgetUsedCapacity()Vput(K key, V value, int size)Vremove(K key)inttrimToAge(long timeMillis)
-
-
-
Method Detail
-
getCapacity
public int getCapacity()
- Overrides:
getCapacityin classLruMemoryCache<K,V>
-
getUsedCapacity
public int getUsedCapacity()
- Overrides:
getUsedCapacityin classLruMemoryCache<K,V>
-
getEntryCount
public int getEntryCount()
- Overrides:
getEntryCountin classLruMemoryCache<K,V>
-
trimToAge
public int trimToAge(long timeMillis)
- Overrides:
trimToAgein classLruMemoryCache<K,V>
-
containsKey
public boolean containsKey(K key)
- Overrides:
containsKeyin classLruMemoryCache<K,V>
-
clear
public void clear()
- Overrides:
clearin classLruMemoryCache<K,V>
-
-