Class IsAssignableFromMatcherImpl<M>

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


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

      • IsAssignableFromMatcherImpl

        public IsAssignableFromMatcherImpl​(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.