KickJava   Java API By Example, From Geeks To Geeks.

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


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

5 package com.mockobjects.constraint;
6
7 /** A constraint over acceptable values.
8  */

9 public interface Constraint
10 {
11     /** Evaluates the constraint for argument <var>o</var>.
12      *
13      * @return
14      * <code>true</code> if <var>o</var> meets the constraint,
15      * <code>false</code> if it does not.
16      */

17     boolean eval( Object JavaDoc o );
18 }
19
Popular Tags