Helper function to split string into groups based on regexp. Possibility to retrieve...
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / string / String2.java
index af7ac27..07e3fdb 100755 (executable)
@@ -17,6 +17,9 @@ public class String2 {
         addSuffix(value);
     }
 
+    public String2() {
+    }
+
     public String2 repeat(int count){
         String value = toString();
 
@@ -56,6 +59,12 @@ public class String2 {
         return this;
     }
 
+    public String2 addSuffix(String s, int times) {
+        for (int i = 0; i < times; i++) addSuffix(s);
+        return this;
+    }
+
+
     /**
      * Cut given amount of characters from the left of the string.
      *