|
From: | Eric Blake |
Subject: | Re: package private static equals and hash methods in java.util |
Date: | Sat, 16 Nov 2002 08:42:19 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
Dalibor Topic wrote:
Hi, a couple of classes in java.util have the same implementation of a static final equals and hashCodemethod taking two arguments.What is the reason why not all the calls are delegated to a single implementation, say AbstractCollection.equals/hashCode instead of duplicating the code ?
Because I was lazy - using inheritance, I could just type equals(a, b), instead of the full Collections.equals(a, b) if the helper methods lived in a single file. Feel free to change that if you want.
-- This signature intentionally left boring. Eric Blake address@hidden BYU student, free software programmer
[Prev in Thread] | Current Thread | [Next in Thread] |