views:

14

answers:

1

Hi, HashMap uses objects as a key. If you use int primitive as key, it uses auto boxing and create integer objects for key.

is there any hashmap implementation uses primitive types as key. I dont want autoboxing. becuase hascode of integer is also value of integer.

I am trying to create integer object pool.

regards Trustin