com.atlassian.cache.impl
Class DefaultCacheEntryEvent<K,V>

java.lang.Object
  extended by com.atlassian.cache.impl.DefaultCacheEntryEvent<K,V>
All Implemented Interfaces:
CacheEntryEvent<K,V>

public class DefaultCacheEntryEvent<K,V>
extends Object
implements CacheEntryEvent<K,V>

A default implementation for CacheEntryEvent


Constructor Summary
DefaultCacheEntryEvent(K key, V value, V oldValue)
           
 
Method Summary
 K getKey()
          Returns the key the event was fired for
 V getOldValue()
          Returns the old value for this key
 V getValue()
          Returns the current value for this key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheEntryEvent

public DefaultCacheEntryEvent(@Nonnull
                              K key,
                              V value,
                              V oldValue)
Method Detail

getKey

@Nonnull
public K getKey()
Description copied from interface: CacheEntryEvent
Returns the key the event was fired for

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

getValue

public V getValue()
Description copied from interface: CacheEntryEvent
Returns the current value for this key

Specified by:
getValue in interface CacheEntryEvent<K,V>
Returns:
the value. For details why is this method marked as Nullable please refer to the class level documentation

getOldValue

public V getOldValue()
Description copied from interface: CacheEntryEvent
Returns the old value for this key

Specified by:
getOldValue in interface CacheEntryEvent<K,V>
Returns:
the old value. For details why is this method marked as Nullable please refer to the class level documentation


Copyright © 2015 Atlassian. All rights reserved.