Example #1
0
  private void outStackInLog() {
    if (log.isDebugEnabled()) {
      StringBuilder outStr = new StringBuilder();

      if (dataStack != null)
        for (Double iStack : dataStack) {
          outStr.append(iStack);
          outStr.append(";  ");
        }
      else outStr.append("Stack is null.");

      if (outStr.length() == 0) outStr.append("Stack is empty.");

      log.debug(String.valueOf(outStr));
    }
  }
Example #2
0
  private void outContextInLog() {
    if (log.isDebugEnabled()) {
      StringBuilder outStr = new StringBuilder();

      if (dictionaryDefine != null)
        for (Map.Entry<String, Double> iDictionary : dictionaryDefine.entrySet()) {
          // outStr.append(iDictionary.getKey() + " = " + iDictionary.getValue() + ";  ");
          outStr.append(iDictionary.getKey());
          outStr.append(" = ");
          outStr.append(iDictionary.getValue());
          outStr.append(";  ");
        }
      else outStr.append("Context is null.");

      if (outStr.length() == 0) outStr.append("Context is empty.");

      log.debug(String.valueOf(outStr));
    }
  }