Re: equals and hasCode for InvocationLayerFactory implementations
Peter Jones <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <20070212215730.GH5391@east> |
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]