Lines 62-67
Link Here
|
62 |
*/ |
62 |
*/ |
63 |
public int height; |
63 |
public int height; |
64 |
|
64 |
|
|
|
65 |
static final int PRIME = 37; |
66 |
|
65 |
static final long serialVersionUID = 3256439218279428914L; |
67 |
static final long serialVersionUID = 3256439218279428914L; |
66 |
|
68 |
|
67 |
/** |
69 |
/** |
Lines 167-173
Link Here
|
167 |
* @see #equals(Object) |
169 |
* @see #equals(Object) |
168 |
*/ |
170 |
*/ |
169 |
public int hashCode () { |
171 |
public int hashCode () { |
170 |
return x ^ y ^ width ^ height; |
172 |
int result = x; |
|
|
173 |
result = result * PRIME + y; |
174 |
result = result * PRIME + width; |
175 |
result = result * PRIME + height; |
176 |
return result; |
171 |
} |
177 |
} |
172 |
|
178 |
|
173 |
/** |
179 |
/** |