Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>>Primitive types have been available since the creation of Java. It's up to the programmer to use boxed types or not.

You can't use a primitive in a collection: eg HashMap / ArrayList



Can you use GNU Trove or Apache Commons Primitives that support primitive types in collections?


Which is why nifty little libraries like Trove, FastUtil, and HPPC exist.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: