Class CatchAllEventMatcher<E extends MetaDataEvent<?,?>>

java.lang.Object
org.refcodes.observer.AbstractEventMatcher<E>
org.refcodes.observer.CatchAllEventMatcher<E>
Type Parameters:
E - The generic type.
All Implemented Interfaces:
org.refcodes.matcher.Matchable<E>, org.refcodes.matcher.Matcher<E>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Schemable, EventMatcher<E>

public class CatchAllEventMatcher<E extends MetaDataEvent<?,?>> extends AbstractEventMatcher<E> implements EventMatcher<E>
Catches all events, no matching is done (CATCH ALL).
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor

    org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs the "catch all" EventMatcher instance.
  • Method Summary

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

    Methods inherited from class org.refcodes.observer.AbstractEventMatcher

    getAlias, toSchema

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.AliasAccessor

    getAlias

    Methods inherited from interface org.refcodes.matcher.Matcher

    toSchema
  • Field Details

  • Constructor Details

    • CatchAllEventMatcher

      public CatchAllEventMatcher()
      Constructs the "catch all" EventMatcher instance.
  • Method Details

    • isMatching

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