MCPcopy Create free account
hub / github.com/davidgiven/luje / valueOf

Method valueOf

lib/java/lang/String.java:1562–1564  ·  view source on GitHub ↗

Creates a new string containing the characters in the specified character array. Modifying the character array after creating the string has no effect on the string. @param data the array of characters. @return the new string. @throws NullPointerException if data is {

(char[] data)

Source from the content-addressed store, hash-verified

1560 * if {@code data} is {@code null}.
1561 */
1562 public static String valueOf(char[] data) {
1563 return new String(data, 0, data.length);
1564 }
1565
1566 /**
1567 * Creates a new string containing the specified characters in the character

Callers 9

decodeMethod · 0.95
StringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
AssertionErrorMethod · 0.95
printMethod · 0.95
printlnMethod · 0.95
decodeMethod · 0.95
nextTokenMethod · 0.95

Calls 5

toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected