MCPcopy Create free account
hub / github.com/LFYSec/MScan / toString

Method toString

src/main/java/pascal/taie/util/collection/Streams.java:61–65  ·  view source on GitHub ↗

Converts a stream to a string. The elements in the collection are sorted by their string representation (in alphabet order) in the resulting string. This is particularly useful for comparing expected results with the ones given by the analysis.

(Stream<T> stream)

Source from the content-addressed store, hash-verified

59 * for comparing expected results with the ones given by the analysis.
60 */
61 public static <T> String toString(Stream<T> stream) {
62 return "[" + stream.map(T::toString)
63 .sorted()
64 .collect(Collectors.joining(", ")) + "]";
65 }
66}

Callers 2

comparePointsToSetMethod · 0.95
toStringMethod · 0.95

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected