org.entityfs.event
Class NewEntityEvent

java.lang.Object
  extended by org.entityfs.event.AbstractEntityEvent<NewEntityEvent>
      extended by org.entityfs.event.NewEntityEvent
All Implemented Interfaces:
EntityEvent<NewEntityEvent>

public final class NewEntityEvent
extends AbstractEntityEvent<NewEntityEvent>

This event is sent when a new entity is created. It can only be received by observing the file system.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-core

Constructor Summary
NewEntityEvent(EntityView sender)
           
 
Method Summary
 NewEntityEvent copy(EntityView sender)
          Copy this event, but set the given entity view as sender.
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class org.entityfs.event.AbstractEntityEvent
getSender, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewEntityEvent

public NewEntityEvent(EntityView sender)
Method Detail

copy

public NewEntityEvent copy(EntityView sender)
Description copied from interface: EntityEvent
Copy this event, but set the given entity view as sender. This is used by views to send events to their listeners.

Parameters:
sender - The entity view to set as sender.
Returns:
An EntityEvent of the same type, but with a new sender.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object