projects
/
svjatoslav_commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Possibility to add separator prefixed suffixes.
[svjatoslav_commons.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
commons
/
string
/
String2.java
diff --git
a/src/main/java/eu/svjatoslav/commons/string/String2.java
b/src/main/java/eu/svjatoslav/commons/string/String2.java
index
4c1627f
..
2e9446a
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/commons/string/String2.java
+++ b/
src/main/java/eu/svjatoslav/commons/string/String2.java
@@
-46,6
+46,14
@@
public class String2 {
return this;
}
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.
*
/**
* Cut given amount of characters from the left of the string.
*