示例#1
0
 public String getRangeString() {
   if (StringUtil.equalStrings(lwrBound, SINGLE_NODE_LWRBOUND)) {
     return "single node";
   }
   if (lwrBound != null || uprBound != null) {
     String lwrDisplay = lwrBound;
     String uprDisplay = uprBound;
     if (lwrBound != null && lwrBound.startsWith("/")) {
       lwrDisplay = lwrBound.substring(1);
     }
     if (uprBound != null && uprBound.startsWith("/")) {
       uprDisplay = uprBound.substring(1);
     }
     return lwrDisplay + " - " + uprDisplay;
   }
   return null;
 }