告警守则 Rule and RuleCompare 02

告警规则 RuleandRuleCompare 02public void formatList(){String tempthis.deleteParenthesis(standValu

告警规则 Rule and RuleCompare 02
public void formatList()
    {
        String temp=this.deleteParenthesis(standValue);
        valueList=Tools.string2List(temp, "\\,");
    }
   
    /**
     * 去除字符串中的括号
     *      */
    public String deleteParenthesis(String standValue)
    {
        String temp=null;
        //去掉字符串中的"("
        if(standValue.contains("("))
        {
            temp=standValue.substring(1);
        }
        //去掉字符串中的")"
        if(standValue.contains(")"))
        {
            temp=temp.substring(0,temp.length()-1);
        }
        return temp;
    }




public interface RuleCompare
{
    boolean compare(String realValue);
}