3 ms·
> Do libraries handle the collections of the primitive types and the collections of the objects differently now You can't use the built in collection classes o
by bradleyjg 13y ago
> Do libraries handle the collections of the primitive types and the collections of the objects differently now
You can't use the built in collection classes on unboxed primatives, but there are a few different popular third party libraries that help overcome that. For example, Google guava has utility classes to work with arrays of primitives as if they were lists (https://code.google.com/p/guava-libraries/wiki/PrimitivesExplained https://code.google.com/p/guava-libraries/wiki/PrimitivesExp...). There's also GNU trove, and Goldman Sachs' java library. Maybe somewhere in the apache commons library too, I don't remember.