MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / spaces

Method spaces

src/main/java/com/rtg/util/StringUtils.java:86–88  ·  view source on GitHub ↗

Return a string consisting of the specified number of spaces. @param length number of spaces @return space string @exception IllegalArgumentException if length is negative.

(final int length)

Source from the content-addressed store, hash-verified

84 * @exception IllegalArgumentException if <code>length</code> is negative.
85 */
86 public static String spaces(final int length) {
87 return repeat(' ', length);
88 }
89
90 /**
91 * Return a string consisting of the specified character, repeated.

Callers 5

test2Method · 0.95
testSpacesMethod · 0.95
padLeftMethod · 0.95
padRightMethod · 0.95
padBetweenMethod · 0.95

Calls 1

repeatMethod · 0.95

Tested by 2

test2Method · 0.76
testSpacesMethod · 0.76