Closed GoogleCodeExporter closed 9 years ago
Here's a list of such collections in the library.
ConcurrentMultiset(ConcurrentMap<E,Integer>) constructor
Multimaps.newMultimap(), newListMultimap(), newSetMultimap(),
newSortedSetMultimap()
ReferenceMap(ReferenceType keyReferenceType, ReferenceType valueReferenceType,
ConcurrentMap<Object,Object> backingMap) constructor
I left out cases like Comparators.givenOrder(),
Multisets.unmodifiableMultiset(),
Multimaps.forMap(), Sets.union(), and the Forwarding* classes, for which this
issue's
concerns don't apply. We care about the situations when the code sometimes uses
a
user-provided backing collection and sometimes doesn't.
Original comment by jared.l....@gmail.com
on 22 Jul 2008 at 7:37
Great, thanks. Bob is determined that we remove that RefMap constructor. I
also
think we can lose the ConcurrentMultiset one. I'll leave it to you to decide
what to
do for the Multimaps ones.
Original comment by kevin...@gmail.com
on 22 Jul 2008 at 7:41
I'd rather keep the new*Multimap methods. since the benefits of creating a
multimap
with arbitrary backing collections are more compelling.
However, I'm fine with getting rid of the other two. The most probable reasons
for
wanting an explicit ConcurrentMap are
1) specifying the ConcurrentHashMap initialCapacity/loadFactor/concurrencyLevel
2) specifying a ConcurrentSkipListMap for a deterministic sort order
If those features are requested, we could create factory methods that take those
parameters explicitly. Besides, a ConcurrentSkipListMap by itself wouldn't be
enough
for a sorted ReferenceMap with weak or soft references, since the ReferenceMap
implementation doesn't store the keys directly in the map.
Original comment by jared.l....@gmail.com
on 22 Jul 2008 at 8:27
Original comment by kevin...@gmail.com
on 17 Sep 2009 at 5:45
Original comment by kevin...@gmail.com
on 17 Sep 2009 at 5:46
This issue now refers only to the Multimaps.new*Multimap() methods. I've
reread all
the stuff I said, and thought about it and I think these methods will be all
right the
way the are. I'm closing this.
Original comment by kevin...@gmail.com
on 18 Sep 2009 at 4:51
Original issue reported on code.google.com by
kevin...@gmail.com
on 6 Jun 2008 at 7:00