public class Event extends Object implements Comparable<Event>
Constructor and Description |
---|
Event(Timestamp timestamp)
Constructs an event with a timestamp.
|
Event(Timestamp timestamp,
Message message)
Constructs a message event with a timestamp and a contained message.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Event other) |
boolean |
equals(Object object) |
Message |
getMessage()
The message contained in this event, if any.
|
Timestamp |
getTimestamp()
Returns the timestamp of this event.
|
int |
hashCode() |
public Event(Timestamp timestamp)
timestamp
- the timestamp of this eventpublic Timestamp getTimestamp()
public Message getMessage()
null
if no
message is containedpublic int compareTo(Event other)
compareTo
in interface Comparable<Event>
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.