Erik Løvlie ha scritto:
> I see your point. Whether (and how) to override the equals method is 
> always very difficult to decide, I find. But I must say that I think the 
> wrapped feature and the wrappee should be considered "logically equal". 
> I realize this would be a very fundamental change, and so requires 
> thorough discussion, but this is my feeling anyway.

This change has the potential to break both the existing geotools 
library and existing applications as well.
I'd prefer to keep equality as it is now, and allow some control
on the user side to allow for a different kind of equality, that
is, a system wide or datastore level hint.
I can think of two ways:
* a hint that deals with equality directly (with two possible
   values, deep or shallow)
* a hint that deals with feature factories/builders, allowing
   the user to choose the feature implementation to use. This
   would allow users to build their own feature implementation
   and take the risk of changing the semantics of some method.

Cheers
Andrea

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to