欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

booleancomparable.java

PIY(Program It Yourself)是一个基于Java的应用程序开发环境
JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -