I was using com.google.common.collect.PrimitiveArrays
from Google Collections, however I cannot find it in Guava, was it renamed? Where can I find it?
Asked
Active
Viewed 481 times
2

ColinD
- 108,630
- 30
- 201
- 202

Gabriel Ščerbák
- 18,240
- 8
- 37
- 52
-
1Looks like you were using one of the snapshots from before Google Collections 1.0, so unfortunately it can be a pain to upgrade. At least, once you're on Guava, things will be much smoother: an API not marked "beta" will only be removed after a lengthy deprecation (I consider 18 months to be lengthy), and one marked "beta" will at least get one release of deprecation before being yanked, so by single-stepping your upgrades you should always get guidance on how to adapt to the changes. – Kevin Bourrillion Jun 03 '10 at 00:34
-
1Kevin, could you take a minute and paste this into http://code.google.com/p/guava-libraries/wiki/Faq ? Just for easier recyclability :) – Dimitris Andreou Jun 03 '10 at 09:54
-
2why, it is on the FAQ! FAQ link: http://stackoverflow.com/questions/tagged?tagnames=guava&sort=votes&pagesize=50 – Kevin Bourrillion Jun 28 '10 at 06:59
1 Answers
11
There are classes in com.google.common.primitives
such as Ints
, Doubles
, Floats
, etc. that I think have the functionality of the old PrimitiveArrays
class (and then some).

Paul Blessing
- 3,815
- 2
- 24
- 25