Package com.embabel.common.util
Class StringTrimmingUtilsKt
-
- All Implemented Interfaces:
public final class StringTrimmingUtilsKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULT_ELLIPSIS
-
Method Summary
-
-
Method Detail
-
trim
final static String trim(String s, Integer max, Integer keepRight, String ellipsis)
Trim a string to a maximum length, keeping the rightmost keepRight characters. Use default ellipsis
- Parameters:
s- string to trimmax- max length to returnkeepRight- number of characters to keep from the right- Returns:
trimmed string
-
removeWhitespace
final static String removeWhitespace(String s)
-
-
-
-