KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > constraint > IsAnything


1 /* Copyright (c) 2002 Nat Pryce. All rights reserved.
2  *
3  * Created on February 10, 2002, 11:33 PM
4  */

5 package com.mockobjects.constraint;
6
7
8 /** A constraint that always returns <code>true</code>.
9  */

10 public class IsAnything implements Constraint
11 {
12     public IsAnything() {
13     }
14     
15     public boolean eval(Object JavaDoc o) {
16         return true;
17     }
18     
19     public String JavaDoc toString() {
20         return "any value";
21     }
22 }
23
24
Popular Tags