public class BaseEvent extends BaseTupleStore implements Event
Event| 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() |
containsKey, get, getAll, getTuples, keys, put, putAll, remove, remove, removeAll, removeAllpublic 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.