Interface EventMatcher<E extends GenericEvent<?>>

Type Parameters:
E - The matchee type.
All Superinterfaces:
org.refcodes.matcher.Matchable<E>, org.refcodes.matcher.Matcher<E>, org.refcodes.mixin.Schemable<org.refcodes.matcher.MatcherSchema>
All Known Subinterfaces:
MetaDataEventMatcher<E>
All Known Implementing Classes:
ActionEqualWithEventMatcher, AliasEqualWithEventMatcher, CatchAllEventMatcher, CatchNoneEventMatcher, ChannelEqualWithEventMatcher, GroupEqualWithEventMatcher, PublisherIsAssignableFromMatcher, UniversalIdEqualWithEventMatcher

public interface EventMatcher<E extends GenericEvent<?>> extends org.refcodes.matcher.Matcher<E>
This interface typifies the Matcher interface for the usage with GenericActionEvent instances. An EventMatcher most commonly uses the EventMetaData (as defined with the GenericMetaDataEvent) in order to determine whether an GenericActionEvent matches EventMetaData properties or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isMatching(E aEvent)
    Tests whether the given GenericActionEvent is matching the Matcher's criteria.

    Methods inherited from interface org.refcodes.mixin.Schemable

    toSchema
  • Method Details

    • isMatching

      boolean isMatching(E aEvent)
      Tests whether the given GenericActionEvent is matching the Matcher's criteria.
      Specified by:
      isMatching in interface org.refcodes.matcher.Matchable<E extends GenericEvent<?>>
      Parameters:
      aEvent - The GenericActionEvent used for testing its matchability.
      Returns:
      True in case the GenericActionEvent matches the Matcher's criteria, else false.