Class StringUtils
java.lang.Object
io.github.mfvanek.pg.generator.utils.StringUtils
-
Method Summary
-
Method Details
-
truncate
Truncates a String. Similar to thetruncatemethod from Apache commons-lang3.- Parameters:
str- the String to truncate, cannot be nullmaxWidth- maximum length of result String, must be positive- Returns:
- truncated String
-