Parent Directory | Revision Log | Patch
revision 1.7.2.3 by gnu_andrew, Tue Aug 2 20:12:15 2005 UTC | revision 1.7.2.4 by gnu_andrew, Tue Sep 20 18:46:26 2005 UTC | |
---|---|---|
# | Line 226 public class Point extends Point2D imple | Line 226 public class Point extends Point2D imple |
226 | */ | */ |
227 | public boolean equals(Object obj) | public boolean equals(Object obj) |
228 | { | { |
229 | // NOTE: No special hashCode() method is required for this class, | |
230 | // as this equals() implementation is functionally equivalent to | |
231 | // super.equals(), which does define a proper hashCode(). | |
232 | ||
233 | if (! (obj instanceof Point2D)) | if (! (obj instanceof Point2D)) |
234 | return false; | return false; |
235 | Point2D p = (Point2D) obj; | Point2D p = (Point2D) obj; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |