Append another Stringmap onto this one. @param other the map to append to this one @param noReplace should existing values be replaced?
(StringMap other, boolean noReplace)
| 528 | */ |
| 529 | |
| 530 | public void |
| 531 | append(StringMap other, boolean noReplace) { |
| 532 | int size = (other != null) ? other.size() : 0; |
| 533 | for (int i = 0; i < size; i++) { |
| 534 | if (noReplace) { |
| 535 | add(other.getKey(i), other.get(i)); |
| 536 | } else { |
| 537 | put(other.getKey(i), other.get(i)); |
| 538 | } |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Returns a string representation of this <code>StringMap</code> in the |