首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

告警守则 Rule and RuleCompare 02

2012-09-21 
告警规则 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);
}
   

热点排行