MCPcopy Index your code
hub / github.com/PCGen/pcgen / join

Method join

PCGen-base/code/src/java/pcgen/base/lang/StringUtil.java:72–75  ·  view source on GitHub ↗

Concatenates the Collection of Objects (converted to Strings using .toString()) into a String using the separator as the delimiter. This method is value-semantic and will not modify or maintain a reference to the given Collection of Objects. @param collection An Collection of objects @p

(Collection<?> collection, char separator)

Source from the content-addressed store, hash-verified

70 * @return A 'separator' separated String
71 */
72 public static String join(Collection<?> collection, char separator)
73 {
74 return join(collection, Character.toString(separator));
75 }
76
77 /**
78 * Concatenates the Collection of Objects (converted to Strings using

Callers 15

testAllowNullArrayMethod · 0.95
testAllowEmptyArrayMethod · 0.95
testJoinArrayMethod · 0.95
testJoinDupeArrayMethod · 0.95
testJoinNonStringListMethod · 0.95
arrayLeftAndCombineMethod · 0.95
unconvertMethod · 0.95
getUnconvertedMethod · 0.95

Calls 3

forEachMethod · 0.80
toStringMethod · 0.65
addMethod · 0.65

Tested by 15

testAllowNullArrayMethod · 0.76
testAllowEmptyArrayMethod · 0.76
testJoinArrayMethod · 0.76
testJoinDupeArrayMethod · 0.76
testJoinNonStringListMethod · 0.76
testJoinMethod · 0.76
getAnswerMethod · 0.76
testEqualityMethod · 0.76