public class TextUtil extends Object
Constructor and Description |
---|
TextUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
lpad(String original,
int minLength)
Pad the incoming String with spaces on the left to the given desired length.
|
static String |
rpad(String original,
int minLength)
Pad the incoming String with spaces on the right to the given desired length.
|
@Nonnull public static String lpad(@Nonnull String original, int minLength)
If the String is already of the minimum size or bigger, return it as is.
original
- the String to padminLength
- the desired length@Nonnull public static String rpad(@Nonnull String original, int minLength)
If the String is already of the minimum size or bigger, return it as is.
original
- the String to padminLength
- the desired lengthCopyright © 2002-2017 Atlassian. All Rights Reserved.