Beispiel #1
0
 // Subtract given number from given key
 public void sub(String key, Number n) {
   BigDecimal v =
       new BigDecimal(properties.get(key).toString()).add(new BigDecimal("" + n.toString()));
   properties.put(key, v.toString());
 }
Beispiel #2
0
 /** Calls replReturnedResult() */
 public Void forNumberValue(Number n) {
   _interactionsModel.replReturnedResult(n.toString(), InteractionsDocument.NUMBER_RETURN_STYLE);
   return null;
 }
Beispiel #3
0
 private void writeNumberProperty(Writer writer, Number integer) throws IOException {
   writer.write(integer.toString());
   writer.write(NEW_LINE);
 }