com.mockobjects.constraint
Class IsEventFrom
java.lang.Object
com.mockobjects.constraint.IsEventFrom
- Constraint
public class IsEventFrom
extends java.lang.Object
Tests if the value is an event announced by a specific object.
IsEventFrom(Class event_class, Object source) - Constructs an IsEventFrom predicate that returns true for any object
derived from event_class announced by
source.
|
IsEventFrom(Object source) - Constructs an IsEventFrom predicate that returns true for any object
derived from
java.util.EventObject announced by
source.
|
boolean | eval(Object o) - Evaluates the constraint for argument o.
|
String | toString()
|
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.
IsEventFrom
public IsEventFrom(Object source)
Constructs an IsEventFrom predicate that returns true for any object
derived from java.util.EventObject
announced by
source.
eval
public boolean eval(Object o)
Evaluates the constraint for argument o.
- eval in interface Constraint
true
if o meets the constraint,
false
if it does not.
toString
public String toString()
Copyright © 2002 Mock Objects. All Rights Reserved.