Interface TypedEvents

All Known Subinterfaces:
AssertablePublishedEvents, PublishedEvents, PublishedEvents.TypedPublishedEvents<T>
All Known Implementing Classes:
DefaultAssertablePublishedEvents, DefaultPublishedEvents

interface TypedEvents
Author:
Oliver Drotbohm
  • Method Details

    • ofType

      Returns all events of the given type.
      Type Parameters:
      T - the event type
      Parameters:
      type - must not be null.
      Returns:
    • eventOfTypeWasPublished

      default boolean eventOfTypeWasPublished(Class<?> type)
      Returns whether an event of the given type was published.
      Parameters:
      type - must not be null.
      Returns:
      whether an event of the given type was published.