org.entityfs.event
Class ChildEntityDisappearedEvent

java.lang.Object
  extended by org.entityfs.event.AbstractEntityEvent<T>
      extended by org.entityfs.event.AbstractChildEntitiesEvent<T>
          extended by org.entityfs.event.AbstractOneChildEntityEvent<ChildEntityDisappearedEvent>
              extended by org.entityfs.event.ChildEntityDisappearedEvent
All Implemented Interfaces:
ChildEntitiesEvent<ChildEntityDisappearedEvent>, EntityEvent<ChildEntityDisappearedEvent>, OneChildEntityEvent<ChildEntityDisappearedEvent>

public final class ChildEntityDisappearedEvent
extends AbstractOneChildEntityEvent<ChildEntityDisappearedEvent>

This event is sent when it is detected that one of a directories' child entities have been removed from the backend by a client that didn't use the file system's methods. (A manually deleted file, for instance.) This may or may not be bad, depending on how the file system is used.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ChildEntityDisappearedEvent(EntityView sender, EntityView entity)
           
 
Method Summary
 ChildEntityDisappearedEvent 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.AbstractOneChildEntityEvent
getChildEntity
 
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

ChildEntityDisappearedEvent

public ChildEntityDisappearedEvent(EntityView sender,
                                   EntityView entity)
Method Detail

copy

public ChildEntityDisappearedEvent 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.

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