public class G9DataEvent extends Object
| Constructor and Description |
|---|
G9DataEvent()
Default empty constructor
|
G9DataEvent(long id,
String type,
Object data)
Creates a new data event.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Gets the data object of this event.
|
long |
getId()
Gets the event id.
|
String |
getType()
Gets the type.
|
boolean |
idMatch(long x)
Check if
id is the same as this event's id. |
void |
setData(Object data)
Sets the data for this event.
|
void |
setId(long id)
Sets the id of this event
|
void |
setType(String type)
Sets the type of this event
|
boolean |
typeMatch(String x)
Check if
x is the same as this event's type. |
public void setData(Object data)
data - the data to set.public void setType(String type)
type - the type to set.public void setId(long id)
id - the id to set.public Object getData()
public long getId()
public String getType()
public boolean typeMatch(String x)
x is the same as this event's type.x - the type to checktrue if x equals this event's type.public boolean idMatch(long x)
id is the same as this event's id.x - the id to checktrue if x equals this event's id.Copyright © 2006–2018 Esito AS. All rights reserved.