01: package org.netbeans.test.java.editor.codegeneration;
02:
03: import java.util.List;
04:
05: public class testEqualsHashcode {
06:
07: String a;
08:
09: int b;
10:
11: List<String> c;
12:
13: @Override
14: public boolean equals(Object obj) {
15: if (obj == null) {
16: return false;
17: }
18: if (getClass() != obj.getClass()) {
19: return false;
20: }
21: final testEqualsHashcode other = (testEqualsHashcode) obj;
22: if (this .a != other.a
23: && (this .a == null || !this .a.equals(other.a))) {
24: return false;
25: }
26: if (this .c != other.c
27: && (this .c == null || !this .c.equals(other.c))) {
28: return false;
29: }
30: return true;
31: }
32:
33: @Override
34: public int hashCode() {
35: int hash = 5;
36: return hash;
37: }
38:
39: }
|