constraint.java

来自「不管是测试驱动开发或者是其它的开发模式」· Java 代码 · 共 19 行

JAVA
19
字号
/*  Copyright (c) 2000-2004 jMock.org
 */
package org.jmock.core;

/**
 * A constraint over acceptable values.
 */
public interface Constraint extends SelfDescribing
{
    /**
     * Evaluates the constraint for argument <var>o</var>.
     *
     * @param o the object against which the constraint is evaluated.
     * @return <code>true</code> if <var>o</var> meets the constraint,
     *         <code>false</code> if it does not.
     */
    boolean eval( Object o );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?