/*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
+ * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*/
-
package eu.svjatoslav.commons.string;
import java.util.ArrayList;
addSuffix(value);
}
+ public String2 repeat(int count){
+ String value = toString();
+
+ for (int i = 1; i < count; i++) {
+ addSuffix(value);
+ }
+ return this;
+ }
+
public String2 addPrefix(final String prefix) {
if (prefix == null)
return this;