Class StringTrimmingUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String trim(String s, Integer max, Integer keepRight, String ellipsis) Trim a string to a maximum length, keeping the rightmost keepRight characters.
      final static String removeWhitespace(String s)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 trim
        max - max length to return
        keepRight - number of characters to keep from the right
        Returns:

        trimmed string