com.mockobjects.constraint
Class IsSame
java.lang.Objectcom.mockobjects.constraint.IsSame
- Constraint
public class IsSame
extends java.lang.Object
Is the value the same object as another value?
IsSame(Object o)- Creates a new instance of IsSame
|
boolean | eval(Object arg)- Evaluates the constraint for argument o.
|
String | toString()
|
IsSame
public IsSame(Object o)
Creates a new instance of IsSame
o - The predicate evaluates to true only when the argument is
this object.
eval
public boolean eval(Object arg)
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.