Class StringUtils
- java.lang.Object
-
- org.activiti.cloud.services.query.model.StringUtils
-
public class StringUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringtruncate(String value, Integer length)Truncate a String to the given length with no warnings or error raised if it is bigger.
-
-
-
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 truncatedlength- 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.
-
-