condition.java

来自「《JSP2.0动态网站开发实例指南》------------------源代码」· Java 代码 · 共 30 行

JAVA
30
字号
package DataCenterPackage;

public class Condition {
    public Condition(String property, String operation, String value) {
        _property = property;
        _operation = operation;
        _value = value;
    }
    
    protected String _property;
    protected String _operation;
    protected String _value;

    public final static String CO_BIGGERTHAN = ">";
    public final static String CO_SMALLERTHAN = "<";
    public final static String CO_EQUAL = "=";
    public final static String CO_BIGGEROREQUAL = ">=";
    public final static String CO_SMALLEROREQUAL = "<=";
    
    public String toString(){
        StringBuffer sb = new StringBuffer(_property);
        sb.append(" ");
        sb.append(_operation);
        sb.append(" \'");
        sb.append(_value);
        sb.append("\'");
        return sb.toString();
    }
}

⌨️ 快捷键说明

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