com.neeve.discovery
Class DiscoveryCacheEvents.DiscoveryCacheAddEventData

java.lang.Object
  extended by com.neeve.discovery.DiscoveryCacheEvents.DiscoveryCacheAddEventData
Enclosing class:
DiscoveryCacheEvents

public static class DiscoveryCacheEvents.DiscoveryCacheAddEventData
extends Object

Data object for the DiscoveryCacheEvents.EVENT_ENTITY_ADD event type.


Field Summary
 IDiscoveryEntity newEntity
          The new entity added to the cache.
 IDiscoveryEntity oldEntity
          The entity in the cache that the added entity replaced (if any).
 
Constructor Summary
DiscoveryCacheEvents.DiscoveryCacheAddEventData(IDiscoveryEntity oldEntity, IDiscoveryEntity newEntity)
          Constructor
 
Method Summary
 String toString()
          Get a string representation of the object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oldEntity

public final IDiscoveryEntity oldEntity
The entity in the cache that the added entity replaced (if any).

This field contains the entity in the cache that the added entity replaced. It is null in case the new entity was added to the cache fresh.


newEntity

public final IDiscoveryEntity newEntity
The new entity added to the cache.

Constructor Detail

DiscoveryCacheEvents.DiscoveryCacheAddEventData

public DiscoveryCacheEvents.DiscoveryCacheAddEventData(IDiscoveryEntity oldEntity,
                                                       IDiscoveryEntity newEntity)
Constructor

Method Detail

toString

public String toString()
Get a string representation of the object

Overrides:
toString in class Object


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.