* * *

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

##  org.hamcrest.object  
Class IsCompatibleType<T>

    
    
    java.lang.Object
      ![extended by ](../../../resources/inherit.gif)[org.hamcrest.BaseMatcher](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest")<T>
          ![extended by ](../../../resources/inherit.gif)[org.hamcrest.TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.lang.Class<?>>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.object.IsCompatibleType <T>**
    

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

* * *
    
    
    public class **IsCompatibleType <T>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.lang.Class<?>>

* * *

**Constructor Summary**  
---  
` **[ IsCompatibleType
](../../../org/hamcrest/object/IsCompatibleType.html#IsCompatibleType\(java.lang.Class\))
** (java.lang.Class< [ T ](../../../org/hamcrest/object/IsCompatibleType.html
"type parameter in IsCompatibleType") > type) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/object/IsCompatibleType.html#describeMismatchSafely\(java.lang.Class, org.hamcrest.Description\)) ** (java.lang.Class<?> cls, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/object/IsCompatibleType.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/object/IsCompatibleType.html#matchesSafely\(java.lang.Class\)) ** (java.lang.Class<?> cls) `   
Subclasses should implement this.  
` static  |  ` <T> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.lang.Class<?>> `  
---  
` ` **[ typeCompatibleWith
](../../../org/hamcrest/object/IsCompatibleType.html#typeCompatibleWith\(java.lang.Class\))
** (java.lang.Class<T> baseType) `  
Creates a matcher of ` Class ` that matches when the specified baseType is
assignable from the examined class.  
**Methods inherited from class org.hamcrest.[ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest") **  
---  
` [ describeMismatch
](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ matches
](../../../org/hamcrest/TypeSafeMatcher.html#matches\(java.lang.Object\)) `  
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../../org/hamcrest/BaseMatcher.html "class in org.hamcrest") **  
---  
` [ _dont_implement_Matcher___instead_extend_BaseMatcher_
](../../../org/hamcrest/BaseMatcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_\(\))
, [ toString ](../../../org/hamcrest/BaseMatcher.html#toString\(\)) `  
**Methods in