StringUtils.leftPad¶
Signature: StringUtils.leftPad(inputString, size, padString*)
Returns: String result - the left-padded String or original String if no padding is necessary, or null if inputString is null
Left pad the inputString with a space (default) or the optional padString.
Parameters¶
| Type | Name | Description | Default |
|---|---|---|---|
| String | inputString | the String to pad out, may be null | |
| Integer | size | the size to pad to | |
| String | padString* | (optional) the String to pad with | ' ' |