com.mockobjects.constraint

Class IsEventFrom

public class IsEventFrom extends Object implements Constraint

Tests if the value is an event announced by a specific object.
Constructor Summary
IsEventFrom(Object source)
Constructs an IsEventFrom predicate that returns true for any object derived from java.util.EventObject announced by source.
IsEventFrom(Class event_class, Object source)
Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.
Method Summary
booleaneval(Object o)
StringtoString()

Constructor Detail

IsEventFrom

public IsEventFrom(Object source)
Constructs an IsEventFrom predicate that returns true for any object derived from java.util.EventObject announced by source.

IsEventFrom

public IsEventFrom(Class event_class, Object source)
Constructs an IsEventFrom predicate that returns true for any object derived from event_class announced by source.

Method Detail

eval

public boolean eval(Object o)

toString

public String toString()
Copyright © 2002 Mock Objects. All Rights Reserved.