edu.tum.cs.commons.cache
Class LRUStraightCacheBase<I,E,X extends Exception>
java.lang.Object
edu.tum.cs.commons.cache.CacheBase<I,H,E,X>
edu.tum.cs.commons.cache.LRUCacheBase<I,I,E,X>
edu.tum.cs.commons.cache.LRUStraightCacheBase<I,E,X>
- Type Parameters:
I - the index type of the cacheE - the type stored in the cacheX - the type of exception thrown by the CacheBase.obtainItem(Object)
method. Use the NeverThrownRuntimeException if no
exception will be thrown.
- Direct Known Subclasses:
- LRUCachingParameterizedFactory
public abstract class LRUStraightCacheBase<I,E,X extends Exception>
- extends LRUCacheBase<I,I,E,X>
This a special base class for last recently used (LRU) caches that work with
identifiers that are suitable as hash keys.
- Version:
- $Rev: 26268 $
- Author:
- Florian Deissenboeck, $Author: juergens $
- Rating:
- GREEN Hash: BDFF6A27A0F84128189790591C459DE8
|
Method Summary |
protected I |
getHashKey(I identifier)
This method simply returns the identifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LRUStraightCacheBase
public LRUStraightCacheBase(int maxSize)
- Constructor.
getHashKey
protected I getHashKey(I identifier)
- This method simply returns the identifier.
- Specified by:
getHashKey in class CacheBase<I,I,E,X extends Exception>
- Returns:
- an object that is suitable hash key
- See Also:
Object.hashCode()
TUM CCSM Commons - 2.7