Commit d5586103 authored by Klaus Hamberger's avatar Klaus Hamberger
Browse files

Added hashCode to Vector class.

git-svn-id: svn+ssh://svn.code.sf.net/p/tip-puck/code/trunk@2332 fbf60bc9-78ff-467a-80f5-d9f1d8e511fc
parent 7ac95fc9
......@@ -56,6 +56,10 @@ public class Vector implements Comparable<Vector> {
this.setNumbers(vector.getNumbers());
}
public int hashCode (){
return toString().hashCode();
}
public boolean equals (Object otherVector){
boolean result = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment