* * *

|  [ **Overview** ](../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/BaseMatcher.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../deprecated-list.html) |  [ **Index** ](../../index-all.html) |  [ **Help** ](../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../org/hamcrest/BaseDescription.html "class in org.hamcrest") [ **NEXT CLASS** ](../../org/hamcrest/Condition.html "class in org.hamcrest") |  [ **FRAMES** ](../../index.html?org/hamcrest/BaseMatcher.html) [ **NO FRAMES** ](BaseMatcher.html) [ **All Classes** ](../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest  
Class BaseMatcher<T>

    
    
    java.lang.Object
      ![extended by ](../../resources/inherit.gif)**org.hamcrest.BaseMatcher <T>**
    

**All Implemented Interfaces:**      [ Matcher
](../../org/hamcrest/Matcher.html "interface in org.hamcrest") <T>, [
SelfDescribing ](../../org/hamcrest/SelfDescribing.html "interface in
org.hamcrest")

**Direct Known Subclasses:**      [ AnyOf ](../../org/hamcrest/core/AnyOf.html
"class in org.hamcrest.core") , [ CustomMatcher
](../../org/hamcrest/CustomMatcher.html "class in org.hamcrest") , [
DescribedAs ](../../org/hamcrest/core/DescribedAs.html "class in
org.hamcrest.core") , [ DiagnosingMatcher
](../../org/hamcrest/DiagnosingMatcher.html "class in org.hamcrest") , [ Is
](../../org/hamcrest/core/Is.html "class in org.hamcrest.core") , [ IsAnything
](../../org/hamcrest/core/IsAnything.html "class in org.hamcrest.core") , [
IsEmptyString ](../../org/hamcrest/text/IsEmptyString.html "class in
org.hamcrest.text") , [ IsEqual ](../../org/hamcrest/core/IsEqual.html "class
in org.hamcrest.core") , [ IsIn ](../../org/hamcrest/collection/IsIn.html
"class in org.hamcrest.collection") , [ IsNot
](../../org/hamcrest/core/IsNot.html "class in org.hamcrest.core") , [ IsNull
](../../org/hamcrest/core/IsNull.html "class in org.hamcrest.core") , [ IsSame
](../../org/hamcrest/core/IsSame.html "class in org.hamcrest.core") , [
TypeSafeDiagnosingMatcher ](../../org/hamcrest/TypeSafeDiagnosingMatcher.html
"class in org.hamcrest") , [ TypeSafeMatcher
](../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")

* * *
    
    
    public abstract class **BaseMatcher <T>**extends java.lang.Objectimplements [Matcher](../../org/hamcrest/Matcher.html "interface in org.hamcrest")<T>

BaseClass for all Matcher implementations.

**See Also:**      [ ` Matcher ` ](../../org/hamcrest/Matcher.html "interface
in org.hamcrest")

* * *

**Constructor Summary**  
---  
` **[ BaseMatcher ](../../org/hamcrest/BaseMatcher.html#BaseMatcher\(\)) ** ()
`  
  
**Method Summary**  
---  
` void ` |  ` **[ _dont_implement_Matcher___instead_extend_BaseMatcher_ ](../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\)) ** () `   
**Deprecated.**  
` void ` |  ` **[ describeMismatch ](../../org/hamcrest/BaseMatcher.html#describeMismatch\(java.lang.Object, org.hamcrest.Description\)) ** (java.lang.Object item, [ Description ](../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generate a description of why the matcher has not accepted the item.  
` java.lang.String ` |  ` **[ toString ](../../org/hamcrest/BaseMatcher.html#toString\(\)) ** () `   
  
**Methods inherited from class java.lang.Object**  
---  
` clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait `  
**Methods inherited from interface org.hamcrest.[ Matcher
](../../org/hamcrest/Matcher.html "interface in org.hamcrest") **  
---  
` [ matches ](../../org/hamcrest/Matcher.html#matches\(java.lang.Object\)) `  
**Methods inherited from interface org.hamcrest.[ SelfDescribing
](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") **  
---  
` [ describeTo
](../../org/hamcrest/SelfDes