+\r
+ @Override\r
+ public int hashCode() {\r
+ final int prime = 17;\r
+ int result = 1;\r
+ result = prime * result + ((id == null) ? 0 : id.hashCode());\r
+ result = prime * result\r
+ + ((scores == null) ? 0 : scores.hashCode());\r
+ return result;\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object obj) {\r
+ if (this == obj)\r
+ return true;\r
+ if (obj == null)\r
+ return false;\r
+ if (getClass() != obj.getClass())\r
+ return false;\r
+ ScoreHolder other = (ScoreHolder) obj;\r
+ if (id == null) {\r
+ if (other.id != null)\r
+ return false;\r
+ } else if (!id.equals(other.id))\r
+ return false;\r
+ if (scores == null) {\r
+ if (other.scores != null)\r
+ return false;\r
+ } else if (!scores.equals(other.scores))\r
+ return false;\r
+ return true;\r
+ }\r
+ \r
+ \r