Class CollectionEventInfo<T>
- java.lang.Object
-
- org.dizitart.no2.collection.events.CollectionEventInfo<T>
-
public class CollectionEventInfo<T> extends Object
Represents a collection event data.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Constructor Summary
Constructors Constructor Description CollectionEventInfo()CollectionEventInfo(EventType eventType)CollectionEventInfo(T item, EventType eventType, long timestamp, String originator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)EventTypegetEventType()Specifies the event type.TgetItem()Specifies the item triggering the event.StringgetOriginator()Specifies the name of the originator who has initiated this event.longgetTimestamp()Specifies the unix timestamp of the change.inthashCode()voidsetEventType(EventType eventType)Specifies the event type.voidsetItem(T item)Specifies the item triggering the event.voidsetOriginator(String originator)Specifies the name of the originator who has initiated this event.voidsetTimestamp(long timestamp)Specifies the unix timestamp of the change.StringtoString()
-
-
-
Method Detail
-
getItem
public T getItem()
Specifies the item triggering the event.- Returns:
- the item.
-
getEventType
public EventType getEventType()
Specifies the event type.- Returns:
- the type of the event.
-
getTimestamp
public long getTimestamp()
Specifies the unix timestamp of the change.- Returns:
- the unix timestamp of the change.
-
getOriginator
public String getOriginator()
Specifies the name of the originator who has initiated this event.- Returns:
- name of the originator.
- Since:
- 4.0
-
setItem
public void setItem(T item)
Specifies the item triggering the event.- Parameters:
item- the item that changed.
-
setEventType
public void setEventType(EventType eventType)
Specifies the event type.- Parameters:
eventType- the type of the event.
-
setTimestamp
public void setTimestamp(long timestamp)
Specifies the unix timestamp of the change.- Parameters:
timestamp- the unix timestamp of the change.
-
setOriginator
public void setOriginator(String originator)
Specifies the name of the originator who has initiated this event.- Parameters:
originator- name of originator of the event.- Since:
- 4.0
-
-