Parent Directory | Revision Log | Patch
revision 2490 by torben, Tue Mar 24 12:38:21 2015 UTC | revision 2533 by torben, Fri May 8 20:49:19 2015 UTC | |
---|---|---|
# | Line 50 public class Address implements Comparab | Line 50 public class Address implements Comparab |
50 | ||
51 | return this.husnrbogstav.compareTo( arg0.husnrbogstav ); | return this.husnrbogstav.compareTo( arg0.husnrbogstav ); |
52 | } | } |
53 | ||
54 | @Override | |
55 | public int hashCode() { | |
56 | return this.id; | |
57 | } | |
58 | ||
59 | @Override | |
60 | public boolean equals(Object o) { | |
61 | if (! (o instanceof Address) ) | |
62 | return false; | |
63 | ||
64 | Address a = (Address) o; | |
65 | return (this.id == a.id); //we rely on uniqueness of DB primary key | |
66 | } | |
67 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |