booleancomparable.java
来自「PIY(Program It Yourself)是一个基于Java的应用程序开发」· Java 代码 · 共 27 行
JAVA
27 行
package piy;
import java.io.Serializable;
/**
* Represents any boolean statement that can be evaluated to return a boolean.
* @author David Vivash
* @version 1.0, 30/04/01
*/
public abstract class BooleanComparable implements Serializable {
private boolean negate = false;
public abstract boolean evaluate();
/**
* Returns true if the result returned from evaluate should be negated.
* @return the value of the negate property
*/
public boolean getNegate() { return negate; }
/**
* Set to true if the result obtained from a call to evaluate should be negated.
* @param value the new value for the negate property
*/
public void setNegate(boolean value) { negate = value; }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?