java.lang.Object
Model.gameClasses.LRU
- All Implemented Interfaces:
CacheReplacementPolicy
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LRU
public LRU()
-
-
Method Details
-
check
- Parameters:
word- a word that has been asked- Returns:
- whether the word exists or not
-
add
- Specified by:
addin interfaceCacheReplacementPolicy- Parameters:
word- a word to be added to LRU cache
-
remove
- Specified by:
removein interfaceCacheReplacementPolicy- Returns:
- the word that has been removed from the cache
-