Package com.atlassian.jira.util
Class TextUtil
java.lang.Object
com.atlassian.jira.util.TextUtil
You can never have enough StringUtils or TextUtils
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextUtil
public TextUtil()
-
-
Method Details
-
lpad
Pad the incoming String with spaces on the left to the given desired length.If the String is already of the minimum size or bigger, return it as is.
- Parameters:
original
- the String to padminLength
- the desired length- Returns:
- A string padded with space to reach the desired minimum length
-
rpad
Pad the incoming String with spaces on the right to the given desired length.If the String is already of the minimum size or bigger, return it as is.
- Parameters:
original
- the String to padminLength
- the desired length- Returns:
- A string padded with space to reach the desired minimum length
-