MCPcopy Index your code
hub / github.com/adblockplus/adblockplusandroid / append

Method append

src/sunlabs/brazil/util/StringMap.java:530–540  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

toStringMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80
substMethod · 0.80
unsubstMethod · 0.80
htmlEncodeMethod · 0.80
urlEncodeMethod · 0.80
urlDecodeMethod · 0.80
readLineMethod · 0.80
toStringMethod · 0.80
subMethod · 0.80
applySubspecMethod · 0.80

Calls 5

addMethod · 0.95
putMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45
getKeyMethod · 0.45

Tested by

no test coverage detected