public class BaseEvent extends BaseTupleStore implements Event
Event| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected long |
timestamp |
| Constructor and Description |
|---|
BaseEvent()
New event with random UUID and timestamp defaulted to current time
|
BaseEvent(Event event)
Copy constructor
|
BaseEvent(String id)
New event with ID.
|
BaseEvent(String id,
long timestamp)
New store entry with ID and a timestamp
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId() |
Long |
getTimestamp() |
int |
hashCode() |
String |
toString() |
get, getAll, getTuples, keys, put, putAll, remove, remove, removeAll, removeAllprotected final String id
protected final long timestamp
public BaseEvent()
public BaseEvent(String id)
id - public BaseEvent(String id, long timestamp)
id - timestamp - public BaseEvent(Event event)
public String getId()
getId in interface Identifiablepublic Long getTimestamp()
getTimestamp in interface Temporalpublic boolean equals(Object o)
equals in class BaseTupleStorepublic int hashCode()
hashCode in class BaseTupleStoreCopyright © 2014 Calrissian. All rights reserved.