Package civitas.celestis.event
Class Events
java.lang.Object
civitas.celestis.event.Events
Contains utility methods related to
Events.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintEventCauseTrace(PrintStream printStream, Handleable event) Given an event, this prints its serialized form, followed by a list of causes in the temporal order ascending.static StringtoString(Handleable event) Serializes an event into its standardized form.
-
Constructor Details
-
Events
public Events()
-
-
Method Details
-
toString
Serializes an event into its standardized form.- Parameters:
event- The event of which to serialize- Returns:
- The serialized form of the event
-
printEventCauseTrace
public static void printEventCauseTrace(@Nonnull PrintStream printStream, @Nullable Handleable event) Given an event, this prints its serialized form, followed by a list of causes in the temporal order ascending.- Parameters:
printStream- The print stream of which to print toevent- The event of which to find the causes of and print
-