org.ehcache.impl.internal.events
Class StoreEventImpl<K,V>

java.lang.Object
  extended by org.ehcache.impl.internal.events.StoreEventImpl<K,V>
All Implemented Interfaces:
StoreEvent<K,V>

public class StoreEventImpl<K,V>
extends java.lang.Object
implements StoreEvent<K,V>

StoreEventImpl


Constructor Summary
StoreEventImpl(EventType type, K key, V oldValue, V newValue)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
          The key of the mapping affected by the mutative event
 V getNewValue()
          The mapped value immediately after the mutative event occurred.
 V getOldValue()
          The mapped value immediately before the mutative event occurred.
 EventType getType()
          The type of mutative event
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoreEventImpl

public StoreEventImpl(EventType type,
                      K key,
                      V oldValue,
                      V newValue)
Method Detail

getType

public EventType getType()
Description copied from interface: StoreEvent
The type of mutative event

Specified by:
getType in interface StoreEvent<K,V>
Returns:
the @{link EventType}

getKey

public K getKey()
Description copied from interface: StoreEvent
The key of the mapping affected by the mutative event

Specified by:
getKey in interface StoreEvent<K,V>
Returns:
the mutated key

getNewValue

public V getNewValue()
Description copied from interface: StoreEvent
The mapped value immediately after the mutative event occurred.

If the mutative event removes the mapping then null is returned.

Specified by:
getNewValue in interface StoreEvent<K,V>
Returns:
the mapped value after the mutation

getOldValue

public V getOldValue()
Description copied from interface: StoreEvent
The mapped value immediately before the mutative event occurred.

If the mutative event created the mapping then null is returned.

Specified by:
getOldValue in interface StoreEvent<K,V>
Returns:
the mapped value before the mutation

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object