You can't use primitives in generics, like you can in C++ with Templates.

If you want a collection which uses primitives I suggest you look at http://trove.starlight-systems.com/ You can pass this collection type as part of the generic. i.e. instead of passing the primitive type, pass the collection type.