org.entityfs.util.obs.polling
Class ChildEntitiesAddedEvent

java.lang.Object
  extended by org.entityfs.event.AbstractEntityEvent<T>
      extended by org.entityfs.event.AbstractChildEntitiesEvent<ChildEntitiesAddedEvent>
          extended by org.entityfs.util.obs.polling.ChildEntitiesAddedEvent
All Implemented Interfaces:
ChildEntitiesEvent<ChildEntitiesAddedEvent>, EntityEvent<ChildEntitiesAddedEvent>

public final class ChildEntitiesAddedEvent
extends AbstractChildEntitiesEvent<ChildEntitiesAddedEvent>
implements ChildEntitiesEvent<ChildEntitiesAddedEvent>

This event is fired by the PollingDirectoryMonitorer when child entities have been added to a directory.

Since:
1.0
Author:
Karl Gustafsson
See Also:
PollingDirectoryMonitorer

Constructor Summary
ChildEntitiesAddedEvent(EntityView sender, Collection<? extends EntityView> entities)
           
 
Method Summary
 ChildEntitiesAddedEvent copy(EntityView sender, Collection<? extends EntityView> entities)
          This is a variant of EntityEvent.copy(EntityView) that sets the given entity view as sender and the collection of entity views as child entities.
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class org.entityfs.event.AbstractChildEntitiesEvent
copy, getChildEntities, getChildEntitiesInternal, toString
 
Methods inherited from class org.entityfs.event.AbstractEntityEvent
getSender
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.entityfs.event.ChildEntitiesEvent
getChildEntities
 
Methods inherited from interface org.entityfs.event.EntityEvent
copy, getSender
 

Constructor Detail

ChildEntitiesAddedEvent

public ChildEntitiesAddedEvent(EntityView sender,
                               Collection<? extends EntityView> entities)
Method Detail

copy

public ChildEntitiesAddedEvent copy(EntityView sender,
                                    Collection<? extends EntityView> entities)
Description copied from interface: ChildEntitiesEvent
This is a variant of EntityEvent.copy(EntityView) that sets the given entity view as sender and the collection of entity views as child entities.

Specified by:
copy in interface ChildEntitiesEvent<ChildEntitiesAddedEvent>
Parameters:
sender - The sender
entities - The child entities.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object