`
XieGuoWei123485
  • 浏览: 65572 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

告警规则 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);
}
   
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics