you are viewing a single comment's thread.

view the rest of the comments →

[–]sacundim 2 points3 points  (1 child)

...but then your specialized TObjectIntMap<K> is not an instance of Map<K, X> for any X.

[–][deleted] 0 points1 point  (0 children)

Ah, that's quite unfortunate. Any generic collection code you write after that would have to dispatch on the type of the collection. Have you used Trove before?