Re: equals and hasCode for InvocationLayerFactory implementations
Gary Huang <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
please take this e-mail address off your list [email protected] ---------------------------------------- > Date: Mon, 12 Feb 2007 16:57:30 -0500 > From: [email protected] > Subject: Re: equals and hasCode for InvocationLayerFactory implementations > To: [email protected] > > On Mon, Feb 12, 2007 at 12:56:16PM +0100, Mark Brouwer wrote: > > Is there a need for equals and hashCode for an InvocationLayerFactory > > implementation, I see various implementations in net.jini.jeri have them > > but I can't seem to find the spec that demand them or any usage of them > > that would make it obvious they should be there? > > It is not a specification requirement, nor is it an operational > requirement in any way that I can recall. > > I suspect that the net.jini.jeri *ILFactory classes have > hashCode/equals methods because those classes represent immutable > objects whose identity is unimportant and that contain data that can > be compared with equals, so it was straightforward for them to do > that. BasicILFactory appears to have had hashCode/equals methods > since it was first created. Perhaps there was a reason that I don't > remember. > > -- Peter > > -------------------------------------------------------------------------- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini-users.html > Unsubscribing: email "signoff JINI-USERS" to [email protected] _________________________________________________________________ Get the new Windows Live Messenger! http://get.live.com/messenger/overview -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]