MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / repeat

Method repeat

src/main/java/com/volmit/adapt/util/Form.java:1339–1351  ·  view source on GitHub ↗

Repeat a string @param s the string @param n the amount of times to repeat @return the repeated string

(String s, int n)

Source from the content-addressed store, hash-verified

1337 * @return the repeated string
1338 */
1339 public static String repeat(String s, int n) {
1340 if (s == null) {
1341 return null;
1342 }
1343
1344 final StringBuilder sb = new StringBuilder();
1345
1346 for (int i = 0; i < n; i++) {
1347 sb.append(s);
1348 }
1349
1350 return sb.toString();
1351 }
1352}

Callers 5

debugValueMethod · 0.95
scrollMethod · 0.95
fMethod · 0.95
fdMethod · 0.95
toRomanMethod · 0.95

Calls 2

appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected