org.entityfs.event
Class EntityDeletedEvent
java.lang.Object
org.entityfs.event.AbstractEntityEvent<EntityDeletedEvent>
org.entityfs.event.EntityDeletedEvent
- All Implemented Interfaces:
- EntityEvent<EntityDeletedEvent>
public final class EntityDeletedEvent
- extends AbstractEntityEvent<EntityDeletedEvent>
This event is sent by an entity or an entity view when the viewed entity has
been deleted. The sender entity is not valid, but some methods can still be
called on it (such as Named.getName()
).
- Since:
- 1.0
- Author:
- Karl Gustafsson
EntityDeletedEvent
public EntityDeletedEvent(EntityView sender)
copy
public EntityDeletedEvent 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