EventTypeEnum
- Enum of possible event sub-typepublic abstract class Event<EventTypeEnum extends java.lang.Enum<?>>
extends java.lang.Object
Immutable base class for all sensor hub events. All sub-classes should remain immutable.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
source |
protected long |
timeStamp |
protected EventTypeEnum |
type |
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getSource()
Gets the source of the event as an object reference.
|
long |
getTimeStamp() |
EventTypeEnum |
getType() |
protected long timeStamp
protected EventTypeEnum extends java.lang.Enum<?> type
protected transient java.lang.Object source
public long getTimeStamp()
public EventTypeEnum getType()
public java.lang.Object getSource()