MCPcopy Create free account
hub / github.com/Ape1ron/SpringAopInDeserializationDemo1 / join

Method join

src/main/java/Util.java:95–106  ·  view source on GitHub ↗
(String[] strings, String sep, String prefix, String suffix)

Source from the content-addressed store, hash-verified

93 }
94
95 public static String join(String[] strings, String sep, String prefix, String suffix) {
96 final StringBuilder sb = new StringBuilder();
97 boolean first = true;
98 for (String s : strings) {
99 if (! first) sb.append(sep);
100 if (prefix != null) sb.append(prefix);
101 sb.append(s);
102 if (suffix != null) sb.append(suffix);
103 first = false;
104 }
105 return sb.toString();
106 }
107
108 public static String join(String[] strings, String sep) {
109 final StringBuilder sb = new StringBuilder();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected