MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / parseDoubles

Method parseDoubles

src/org/opensourcephysics/tools/DataTool.java:1080–1082  ·  view source on GitHub ↗

Parses a String into doubles separated by a specified delimiter. Unparsable strings are set to Double.NaN. @param text the text to parse @param delimiter the delimiter @return an array of doubles

(String text, String delimiter)

Source from the content-addressed store, hash-verified

1078 * @return an array of doubles
1079 */
1080 protected static double[] parseDoubles(String text, String delimiter) {
1081 return parseDoubles(parseStrings(text, delimiter), delimiter);
1082 }
1083
1084 /**
1085 * Parses a String array into doubles. Unparsable strings are set to Double.NaN.

Callers 1

parseDataMethod · 0.95

Calls 3

parseStringsMethod · 0.95
parseDoubleMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected