Stephen Colebourne wrote:
BTW, I favour trying to create a 'FlexiMap' map implementation, which has pluggable hashcode/equals/weakReference/softReference/... So, if anyone wants to give that a go feel free!

Stephen
In my current code, I have an Equator (equalTo()) method, and a HashEquator (extends Equator and adds a hash() method), but now that I've gone and implemented stuff, it comes down to the fact that nothing uses Equator directly, because so many things use hash codes etc, that you're just shooting yourself in the foot later by not following a similar contract to the Object.equals() method. Thus there will only be one plug for hashcode/equals implementation (hopefully just clarifying what you were thinking).

What I also was going to say is that you can use an EquatorMap and ReferenceMap to decorate each other, but they're going to extend from different classes, so that's no good.

So, are you talking about one Map to rule them all?  Sounds convenient.

Stephen (not C :)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to