Re: package private static equals and hash methods in java.util

2002-11-16 Thread Eric Blake
Dalibor Topic wrote:

Hi,

a couple of classes in java.util have the same
implementation of a static final equals and hashCode
method 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 [EMAIL PROTECTED]
  BYU student, free software programmer




___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath


package private static equals and hash methods in java.util

2002-11-15 Thread Dalibor Topic
Hi,

a couple of classes in java.util have the same
implementation of a static final equals and hashCode
method 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 ?

best regards,

dalibor topic

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com


___
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath