Class Events

java.lang.Object
civitas.celestis.event.Events

public final class Events extends Object
Contains utility methods related to Events.
  • Constructor Details

    • Events

      public Events()
  • Method Details

    • toString

      @Nonnull public static String toString(@Nullable Handleable event)
      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 to
      event - The event of which to find the causes of and print