Class EqualityMatcher<T>

    • Field Detail

      • value

        private final java.lang.Object value
        The object that is checked to be equal to the matched value.
    • Constructor Detail

      • EqualityMatcher

        public EqualityMatcher​(java.lang.Object value)
        Creates an element matcher that tests for equality.
        Parameters:
        value - The object that is checked to be equal to the matched value.
    • Method Detail

      • matches

        public boolean matches​(T target)
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object