edu.tum.cs.commons.cache
Class SoftRefStraightCacheBase<I,E,X extends Exception>
java.lang.Object
edu.tum.cs.commons.cache.CacheBase<I,H,E,X>
edu.tum.cs.commons.cache.SoftRefCacheBase<I,I,E,X>
edu.tum.cs.commons.cache.SoftRefStraightCacheBase<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:
- SoftRefCachingParameterizedFactory
public abstract class SoftRefStraightCacheBase<I,E,X extends Exception>
- extends SoftRefCacheBase<I,I,E,X>
This a special base class for caches that work with identifiers that are
suitable as hash keys.
- Version:
- $Rev: 26268 $
- Author:
- Florian Deissenboeck, $Author: juergens $
- Rating:
- GREEN Hash: E85AF211BBB7DB2E0594B7C6F81453CC
|
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 |
SoftRefStraightCacheBase
public SoftRefStraightCacheBase()
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