MCPcopy Create free account
hub / github.com/Syncleus/aparapi / hash

Method hash

src/test/java/com/aparapi/codegen/Diff.java:61–67  ·  view source on GitHub ↗
(String[] lines)

Source from the content-addressed store, hash-verified

59public class Diff{
60
61 static int[] hash(String[] lines) {
62 int[] val = new int[lines.length];
63 for (int i = 0; i < lines.length; i++) {
64 val[i] = lines[i].hashCode();
65 }
66 return (val);
67 }
68
69 static void costDiag(List<Point>[][] flags, int x, int y) {
70 if (x == 0 || y == 0 || flags[x - 1][y - 1] == null) {

Callers 1

diffMethod · 0.95

Calls 1

hashCodeMethod · 0.45

Tested by

no test coverage detected