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
-
Method Summary
-
Constructor Details
-
LRUCache
public LRUCache(int cacheSize)
-
-
Method Details
-
getClass
- Specified by:
getClass
in interfaceClassCache
-
getClasses
- Specified by:
getClasses
in interfaceClassCache
-
putClass
- Specified by:
putClass
in interfaceClassCache
-
hasClass
- Specified by:
hasClass
in interfaceClassCache
-
size
public int size()- Specified by:
size
in interfaceClassCache
-