Package sootup.core.cache
Class LRUCache
java.lang.Object
sootup.core.cache.LRUCache
- All Implemented Interfaces:
ClassCache
Cache that implements a least recently used strategy. If the amount of stored classes exceeds a
specified amount, the lest recently used class will be overwritten.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LRUCache
public LRUCache(int cacheSize)
-
-
Method Details
-
getClass
- Specified by:
getClassin interfaceClassCache
-
getClasses
- Specified by:
getClassesin interfaceClassCache
-
putClass
- Specified by:
putClassin interfaceClassCache
-
hasClass
- Specified by:
hasClassin interfaceClassCache
-
size
public int size()- Specified by:
sizein interfaceClassCache
-