herited from class java.lang.Object**  
---  
` clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
wait `  
  
**Constructor Detail**  
---  
  
###  IsCompatibleType

    
    
    public **IsCompatibleType**(java.lang.Class<[T](../../../org/hamcrest/object/IsCompatibleType.html "type parameter in IsCompatibleType")> type)

**Method Detail**  
---  
  
###  matchesSafely

    
    
    public boolean **matchesSafely**(java.lang.Class<?> cls)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` **
     Subclasses should implement this. The item will already have been checked for the specific type and will never be null. 

    

**Specified by:**      ` [ matchesSafely
](../../../org/hamcrest/TypeSafeMatcher.html#matchesSafely\(T\)) ` in class `
[ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html "class in
org.hamcrest") <java.lang.Class<?>> `

    

* * *

###  describeMismatchSafely

    
    
    public void **describeMismatchSafely**(java.lang.Class<?> cls,
                                       [Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription)

     **Description copied from class:` [ TypeSafeMatcher ](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T, org.hamcrest.Description\)) ` **
     Subclasses should override this. The item will already have been checked for the specific type and will never be null. 

    

**Overrides:**      ` [ describeMismatchSafely
](../../../org/hamcrest/TypeSafeMatcher.html#describeMismatchSafely\(T,
org.hamcrest.Description\)) ` in class ` [ TypeSafeMatcher
](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")
<java.lang.Class<?>> `

    

* * *

###  describeTo

    
    
    public void **describeTo**([Description](../../../org/hamcrest/Description.html "interface in org.hamcrest") description)

     **Description copied from interface:` [ SelfDescribing ](../../../org/hamcrest/SelfDescribing.html#describeTo\(org.hamcrest.Description\)) ` **
     Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately. 

    

**Parameters:**      ` description ` \- The description to be built or
appended to.

* * *

###  typeCompatibleWith

    
    
    public static <T> [Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<java.lang.Class<?>> **typeCompatibleWith**(java.lang.Class<T> baseType)

     Creates a matcher of ` Class ` that matches when the specified baseType is assignable from the examined class. 

For example:

    
    
    assertThat(Integer.class, typeCompatibleWith(Number.class))

    

**Parameters:**      ` baseType ` \- the base class to examine classes against

* * *

|  [ **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   
  
* * *