Class StringUtils


  • public class StringUtils
    extends Object
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • Method Detail

      • truncate

        public static String truncate​(String value,
                                      Integer length)
        Truncate a String to the given length with no warnings or error raised if it is bigger.
        Parameters:
        value - String to be truncated
        length - Maximum length of string
        Returns:
        Returns value if value is null or value.length() is less or equal to than length, otherwise a String representing value truncated to length.