Class IsAssignableFromMatcherImpl<M>

  • Type Parameters:
    M - The matchee type
    All Implemented Interfaces:
    Matcher<M>

    public class IsAssignableFromMatcherImpl<M>
    extends java.lang.Object
    implements Matcher<M>
    A IS ASSIGNABLE FROM implementation of a Matcher by type.
    • Constructor Summary

      Constructors 
      Constructor Description
      IsAssignableFromMatcherImpl​(java.lang.Class<?> aMatcheeType)
      Constructs a IS ASSIGNABLE FROM Matcher using the type of the matchees being the criteria to determine a match.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMatching​(M aMatchee)
      Tests whether the given event is matching the mathcer's criteria.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IsAssignableFromMatcherImpl

        public IsAssignableFromMatcherImpl​(java.lang.Class<?> aMatcheeType)
        Constructs a IS ASSIGNABLE FROM Matcher using the type of the matchees being the criteria to determine a match.
        Parameters:
        aMatcheeType - The type of the matchee to match.
    • Method Detail

      • isMatching

        public boolean isMatching​(M aMatchee)
        Tests whether the given event is matching the mathcer's criteria.
        Specified by:
        isMatching in interface Matcher<M>
        Parameters:
        aMatchee - The matchee used for testing matchability.
        Returns:
        True in case the matchee matches the matcher's criteria, else false.