* * *

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

##  org.hamcrest.object  
Class IsEventFrom

    
    
    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.TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<java.util.EventObject>
              ![extended by ](../../../resources/inherit.gif)**org.hamcrest.object.IsEventFrom**
    

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

* * *
    
    
    public class **IsEventFrom** extends [TypeSafeDiagnosingMatcher](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest")<java.util.EventObject>

Tests if the value is an event announced by a specific object.

* * *

**Constructor Summary**  
---  
` **[ IsEventFrom
](../../../org/hamcrest/object/IsEventFrom.html#IsEventFrom\(java.lang.Class,
java.lang.Object\)) ** (java.lang.Class<?> eventClass, java.lang.Object
source) `  
  
**Method Summary**  
---  
` void ` |  ` **[ describeTo ](../../../org/hamcrest/object/IsEventFrom.html#describeTo\(org.hamcrest.Description\)) ** ( [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") description) `   
Generates a description of the object.  
` static [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.EventObject> ` |  ` **[ eventFrom ](../../../org/hamcrest/object/IsEventFrom.html#eventFrom\(java.lang.Class, java.lang.Object\)) ** (java.lang.Class<? extends java.util.EventObject> eventClass, java.lang.Object source) `   
Creates a matcher of ` EventObject ` that matches any object derived from
eventClass  announced by  source  .  
` static [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <java.util.EventObject> ` |  ` **[ eventFrom ](../../../org/hamcrest/object/IsEventFrom.html#eventFrom\(java.lang.Object\)) ** (java.lang.Object source) `   
Creates a matcher of ` EventObject ` that matches any EventObject announced by
source  .  
` boolean ` |  ` **[ matchesSafely ](../../../org/hamcrest/object/IsEventFrom.html#matchesSafely\(java.util.EventObject, org.hamcrest.Description\)) ** (java.util.EventObject item, [ Description ](../../../org/hamcrest/Description.html "interface in org.hamcrest") mismatchDescription) `   
Subclasses should implement this.  
**Methods inherited from class org.hamcrest.[ TypeSafeDiagnosingMatcher
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in
org.hamcrest") **  
---  
` [ describeMismatch
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ matches
](../../../org/hamcrest/TypeSafeDiagnosingMatcher.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#_don