Parent Directory | Revision Log | Patch
revision 1.15 by mark, Sat Jul 2 20:32:25 2005 UTC | revision 1.16 by green, Fri Sep 16 01:11:39 2005 UTC | |
---|---|---|
# | Line 727 public class Rectangle extends Rectangle | Line 727 public class Rectangle extends Rectangle |
727 | */ | */ |
728 | public boolean equals(Object obj) | public boolean equals(Object obj) |
729 | { | { |
730 | // NOTE: No special hashCode() method is required for this class, | |
731 | // as this equals() implementation is functionally equivalent to | |
732 | // super.equals(), which does define a proper hashCode(). | |
733 | ||
734 | if (! (obj instanceof Rectangle2D)) | if (! (obj instanceof Rectangle2D)) |
735 | return false; | return false; |
736 | Rectangle2D r = (Rectangle2D) obj; | Rectangle2D r = (Rectangle2D) obj; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |