Left pad a String with spaces (' '). The String is padded to the size of size . StringUtils.leftPad(null, ) = null StringUtils.leftPad("", 3) = " " StringUtils.leftPad("bat", 3) = "bat" StringUtils.leftPad("bat", 5) = " bat" StringUtils.leftPad("bat", 1)
(String str, int size)
| 463 | * <code>null</code> if null String input |
| 464 | */ |
| 465 | public static String leftPad(String str, int size) { |
| 466 | return leftPad(str, size, ' '); |
| 467 | } |
| 468 | |
| 469 | public static String leftPad(String str, int strSize, int size) { |
| 470 | return leftPad(str, strSize, size, ' '); |
no test coverage detected