MCPcopy
hub / github.com/jOOQ/jOOQ / rightPad

Method rightPad

jOOQ/src/main/java/org/jooq/tools/StringUtils.java:335–337  ·  view source on GitHub ↗

Right pad a String with spaces (' '). The String is padded to the size of size . StringUtils.rightPad(null, ) = null StringUtils.rightPad("", 3) = " " StringUtils.rightPad("bat", 3) = "bat" StringUtils.rightPad("bat", 5) = "bat " StringUtils.rightPad("bat

(String str, int size)

Source from the content-addressed store, hash-verified

333 * <code>null</code> if null String input
334 */
335 public static String rightPad(String str, int size) {
336 return rightPad(str, size, ' ');
337 }
338
339 public static String rightPad(String str, int strSize, int size) {
340 return rightPad(str, strSize, size, ' ');

Callers 10

getMessageMethod · 0.95
parseDSMethod · 0.95
stringMethod · 0.95
XMLFormatMethod · 0.80
indentStringMethod · 0.80
JSONFormatMethod · 0.80
indentStringMethod · 0.80
formatMethod · 0.80
formatHorizontalLineMethod · 0.80
alignNumberValueMethod · 0.80

Calls 6

paddingMethod · 0.95
isEmptyMethod · 0.95
lengthMethod · 0.65
concatMethod · 0.65
substringMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected