de.qfs.lib.util
Class MRUCacheEvent
java.lang.Object
|
+--java.util.EventObject
|
+--de.qfs.lib.util.MRUCacheEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class MRUCacheEvent
- extends java.util.EventObject
Event object that contains details about resources being dropped from an
overflowing MRUCache
.
- Since:
- 0.98.0
- Version:
- $Revision: 1.1 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
MRUCacheEvent(java.lang.Object source,
java.lang.Object key,
java.lang.Object resource)
Create a new MRUCacheEvent. |
Method Summary |
java.lang.Object |
getKey()
Get the key the resource was stored under. |
java.lang.Object |
getResource()
Get the resource that is removed from the MRUCache. |
java.lang.String |
toString()
Get a String representation for the event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MRUCacheEvent
public MRUCacheEvent(java.lang.Object source,
java.lang.Object key,
java.lang.Object resource)
- Create a new MRUCacheEvent.
- Parameters:
source
- The source of the event, typically the MRUCache
.key
- The key the resource was stored under.resource
- The resource that is removed from the MRUCache.
getKey
public java.lang.Object getKey()
- Get the key the resource was stored under.
- Returns:
- The key the resource was stored under.
getResource
public java.lang.Object getResource()
- Get the resource that is removed from the MRUCache.
- Returns:
- The resource that is removed from the MRUCache.
toString
public java.lang.String toString()
- Get a String representation for the event.
- Overrides:
toString
in class java.util.EventObject
- Returns:
- The String representation for the event.