KickJava   Java API By Example, From Geeks To Geeks.

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


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 /** Is the value null?
9  */

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