@InterfaceAudience.Public @InterfaceStability.Evolving public class TimelineEvent extends Object implements Comparable<TimelineEvent>
Constructor and Description |
---|
TimelineEvent() |
Modifier and Type | Method and Description |
---|---|
void |
addEventInfo(Map<String,Object> eventInfo)
Add a map of the information of the event to the existing information map
|
void |
addEventInfo(String key,
Object value)
Add one piece of the information of the event to the existing information
map
|
int |
compareTo(TimelineEvent other) |
boolean |
equals(Object o) |
Map<String,Object> |
getEventInfo()
Set the information of the event
|
String |
getEventType()
Get the event type
|
long |
getTimestamp()
Get the timestamp of the event
|
int |
hashCode() |
void |
setEventInfo(Map<String,Object> eventInfo)
Set the information map to the given map of the information of the event
|
void |
setEventType(String eventType)
Set the event type
|
void |
setTimestamp(long timestamp)
Set the timestamp of the event
|
public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- the timestamp of the eventpublic String getEventType()
public void setEventType(String eventType)
eventType
- the event typepublic Map<String,Object> getEventInfo()
public void addEventInfo(String key, Object value)
key
- the information keyvalue
- the information valuepublic void addEventInfo(Map<String,Object> eventInfo)
eventInfo
- a map of of the information of the eventpublic void setEventInfo(Map<String,Object> eventInfo)
eventInfo
- a map of of the information of the eventpublic int compareTo(TimelineEvent other)
compareTo
in interface Comparable<TimelineEvent>
Copyright © 2024 Apache Software Foundation. All rights reserved.