Skip to content

Commit 2877a6f

Browse files
committed
Implemented hashcode method for Sketch
1 parent 4206874 commit 2877a6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/processing/app/Sketch.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,4 +1929,10 @@ public boolean equals(Object another) {
19291929
}
19301930
return false;
19311931
}
1932+
1933+
1934+
@Override
1935+
public int hashCode(){
1936+
return getMainPath().hashCode();
1937+
}
19321938
}

0 commit comments

Comments
 (0)