* * *

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

##  org.hamcrest.collection  
Class IsMapContaining<K,V>

    
    
    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.util.Map<? extends K,? extends V>>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.collection.IsMapContaining <K,V>**
    

**All Implemented Interfaces:**      [ Matcher
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")
<java.util.Map<? extends K,? extends V>>, [ SelfDescribing
](../../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest")

* * *
    
    
    public class **IsMapContaining <K,V>**extends [TypeSafeMatcher](../../../org/hamcrest/TypeSafeMatcher.html "class in org.hamcrest")<java.util.Map<? extends K,? extends V>>

* * *

**Constructor Summary**  
---  
` **[ IsMapContaining
](../../../org/hamcrest/collection/IsMapContaining.html#IsMapContaining\(org.hamcrest.Matcher,
org.hamcrest.Matcher\)) ** ( [ Matcher ](../../../org/hamcrest/Matcher.html
"interface in org.hamcrest") <? super [ K
](../../../org/hamcrest/collection/IsMapContaining.html "type parameter in
IsMapContaining") > keyMatcher, [ Matcher ](../../../org/hamcrest/Matcher.html
"interface in org.hamcrest") <? super [ V
](../../../org/hamcrest/collection/IsMapContaining.html "type parameter in
IsMapContaining") > valueMatcher) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeMismatchSafely ](../../../org/hamcrest/collection/IsMapContaining.html#describeMismatchSafely\(java.util.Map, org.hamcrest.Description\)) ** (java.util.Map<? extends [ K ](../../../org/hamcrest/collection/IsMapContaining.html "type parameter in IsMapContaining") ,? extends [ V ](../../../org/hamcrest/collection/IsMapContaining.html "type parameter in IsMapContaining") > map, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should override this.  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/collection/IsMapContaining.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static  |  ` <K,V> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.Map<? extends K,? extends V>> `  
---  
` ` **[ hasEntry
](../../../org/hamcrest/collection/IsMapContaining.html#hasEntry\(K, V\)) **
(K key, V value) `  
Creates a matcher for ` Map ` s matching when the examined ` Map ` contains at
least one entry whose key equals the specified ` key ` **and** whose value
equals the specified ` value ` .  
` static  |  ` <K,V> [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.Map<? extends K,? extends V>> `  
---  
` ` **[ hasEntry
](../../../org/hamcrest/collection/IsMapContaining.html#hasEntry\(org.hamcrest.Matcher,
org.hamcrest.Matcher\)) ** ( [ Matcher ](../../../org/hamcrest/Matcher.html
"interface in org.hamcre