Oh - except that in the cases where the geometries are *not* identical, 
then a slower equals test is performed.  So still better to just test 
reference equality, I think.

On 4/21/2012 8:05 AM, Martin Davis wrote:
> That does seem like a good idea.  I'll look at adding that.
>
> On 4/21/2012 12:48 AM, Michaël Michaud wrote:
>>
>> Implementing #3 I was wondering why not implementing the following
>> short circuit in Geometry equals method
>> public boolean equals(Object o) {
>>      if (this == o) return true;
>>      etc.
>> }
>> Can you see any drawback ?
>> Seems that this way, many algorithms could automatically benefit your
>> #3 trick.
>>
>>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4950 - Release Date: 04/21/12
>
>
>

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to