MCPcopy Index your code
hub / github.com/antlr/codebuff / join

Method join

output/java_guava/1.4.17/Ints.java:423–436  ·  view source on GitHub ↗

Returns a string containing the supplied int values separated by separator. For example, join("-", 1, 2, 3) returns the string "1-2-3". @param separator the text that should appear between consecutive values in the resulting string (but not at the start or end) @

(String separator, int... array)

Source from the content-addressed store, hash-verified

421
422
423 public static String join(String separator, int... array) {
424 checkNotNull(separator);
425 if (array.length == 0) {
426 return "";
427 }
428
429 // For pre-sizing a builder, just get the right order of magnitude
430 StringBuilder builder = new StringBuilder(array.length * 5);
431 builder.append(array[0]);
432 for (int i = 1; i < array.length; i++) {
433 builder.append(separator).append(array[i]);
434 }
435 return builder.toString();
436 }
437
438 /**
439 * Returns a comparator that compares two {@code int} arrays <a

Callers 10

toStringMethod · 0.45
toStringMethod · 0.45
adjacentNodesStringMethod · 0.45
toStringMethod · 0.45
joinUninterruptiblyMethod · 0.45
captureMethod · 0.45
simplifyPathMethod · 0.45
toStringMethod · 0.45
findPublicSuffixMethod · 0.45
ancestorMethod · 0.45

Calls 3

toStringMethod · 0.65
checkNotNullMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected