|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Constraint.java | - | - | - | - |
|
1 |
/* Copyright (c) 2000-2003, jMock.org. See bundled LICENSE.txt */
|
|
2 |
package org.jmock;
|
|
3 |
|
|
4 |
/**
|
|
5 |
* A constraint over acceptable values.
|
|
6 |
*/
|
|
7 |
public interface Constraint { |
|
8 |
/**
|
|
9 |
* Evaluates the constraint for argument <var>o</var>.
|
|
10 |
*
|
|
11 |
* @return <code>true</code> if <var>o</var> meets the constraint,
|
|
12 |
* <code>false</code> if it does not.
|
|
13 |
*/
|
|
14 |
boolean eval(Object o);
|
|
15 |
} |
|
16 |
|
|