Possibility to add separator prefixed suffixes.
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / string / String2.java
index 4c1627f..2e9446a 100755 (executable)
@@ -46,6 +46,14 @@ public class String2 {
         return this;
     }
 
+    public String2 addSuffix(String separator, final String suffix) {
+        if (!isEmpty())
+            addSuffix(separator);
+
+        addSuffix(suffix);
+
+        return this;
+    }
     /**
      * Cut given amount of characters from the left of the string.
      *