On Fri, Sep 5, 2008 at 7:45 AM, Joel Webber <[EMAIL PROTECTED]> wrote: > 2. Can you actually use an arbitrary object as the key type? Based on the > native put() implementation (map[key] = value), I'd guess not. I may be > missing something, but I don't see any way to limit the key type as it's > currently specified.
If you're willing to rely on an implementation detail like this, the identity hashCode value of an object is based on a per-module counter. You could use this in web mode, and in hosted mode, just delegate to an IdentityHashMap. -- Bob Vawter Google Web Toolkit Team --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
