• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.hamcrest;
2 
3 /**
4  * TODO(ngd): Document.
5  *
6  * @param <T>
7  */
8 public abstract class DiagnosingMatcher<T> extends BaseMatcher<T> {
9 
10     @Override
matches(Object item)11     public final boolean matches(Object item) {
12         return matches(item, Description.NONE);
13     }
14 
15     @Override
describeMismatch(Object item, Description mismatchDescription)16     public final void describeMismatch(Object item, Description mismatchDescription) {
17         matches(item, mismatchDescription);
18     }
19 
matches(Object item, Description mismatchDescription)20     protected abstract boolean matches(Object item, Description mismatchDescription);
21 }
22