Class EventImpl<T>
- java.lang.Object
-
- org.drools.examples.broker.events.EventImpl<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()This is the same as getTimestamp, but returns a Date object insteadTgetObject()Returns this event's actual objectlonggetTimestamp()Returns the timestamp from this eventStringtoString()
-
-
-
Constructor Detail
-
EventImpl
public EventImpl(long timestamp, T object)
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
Description copied from interface:EventReturns the timestamp from this event- Specified by:
getTimestampin interfaceEvent<T>- Returns:
-
getObject
public T getObject()
Description copied from interface:EventReturns this event's actual object
-
getDate
public Date getDate()
Description copied from interface:EventThis is the same as getTimestamp, but returns a Date object instead
-
-