4

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.

Maroun
  • 94,125
  • 30
  • 188
  • 241
Eyal
  • 5,728
  • 7
  • 43
  • 70
  • 1
    Nothing 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
  • 3
    There 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 Answers1

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
  • 3
    If 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