I tried to write a class that extends guava's AbstractMultiset
but I saw that it isn't a public class. Why is that?
Is there a different class that I should be extending? The other similar classes that I know (AbstractCollection
, AbstractSet
, etc) are public.
Asked
Active
Viewed 151 times
4
-
1Nothing against the question, but IMO, the best(read *correct*) answer to this question can come from a *dev* working in the *Guava division*, at *Google*. – Rahul Nov 07 '13 at 09:12
-
3There are such developers here on Stackoverflow, so... – siledh Nov 07 '13 at 09:14
-
I never claimed that we won't get an answer or something. I just said that the best answer would be from.. we already have [Jon Skeet](http://stackoverflow.com/users/22656/jon-skeet) btw! :) – Rahul Nov 07 '13 at 09:20
1 Answers
1
I imagine that the answer is "it was an oversight".
There is an outstanding issue to correct this in the issue tracker: http://code.google.com/p/guava-libraries/issues/detail?id=157. Nobody has argued against fixing this, but it just hasn't happened.

Stephen C
- 698,415
- 94
- 811
- 1,216
-
3If you look at the comments now, there _are_ arguments against fixing this. – Louis Wasserman Nov 07 '13 at 22:35
-
It is also worth noting that the dev team appears to have come around to agreeing that making the baseclass public >>is<< the best solution for the OP's use-case. Anyway, it is worth reading the comments. – Stephen C Dec 02 '13 at 07:52