Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2012-02-24 17:27:35 +0000
committerpfullbright2012-02-24 17:27:35 +0000
commit534fbd89a9b6d27a7317f1f2e6a91d3254ddf551 (patch)
tree4cce2dc463d39463d3ac5f896215da5d715e1c4b /common/plugins
parent87dcea896857c16ba1e7ab9d4a9700380741dfbe (diff)
downloadwebtools.dali-534fbd89a9b6d27a7317f1f2e6a91d3254ddf551.tar.gz
webtools.dali-534fbd89a9b6d27a7317f1f2e6a91d3254ddf551.tar.xz
webtools.dali-534fbd89a9b6d27a7317f1f2e6a91d3254ddf551.zip
added concatenate(String ... )
Diffstat (limited to 'common/plugins')
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/StringTools.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/StringTools.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/StringTools.java
index ec458be12b..d602c6af41 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/StringTools.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/StringTools.java
@@ -4056,6 +4056,20 @@ public final class StringTools {
sb.append(']');
return sb.toString();
}
+
+ /**
+ * Return a concatenation of the given strings
+ *
+ * @param strings - the strings to concatenate
+ * @return the resultant concatenated string
+ */
+ public static String concatenate(String ... strings) {
+ StringBuilder sb = new StringBuilder();
+ for (String string : strings) {
+ sb.append(string);
+ }
+ return sb.toString();
+ }
// ********** queries **********

Back to the top