Creates a new
SortedSetMultimap that uses the provided map and
factory. It can generate a multimap based on arbitrary
Map and
SortedSet classes.
The
factory-generated and
map classes determine the
multimap iteration order. They also specify the behavior of the
equals,
hashCode, and
toString methods for the
multimap and its returned views. However, the multimap's
getmethod returns instances of a different class than
factory.get()does.
The multimap is serializable if
map,
factory, the
sets generated by
factory, and the multimap contents are all
serializable.
The multimap is not threadsafe when any concurrent operations update the
multimap, even if
map and the instances generated by
factory are. Concurrent read operations will work correctly. To
allow concurrent update operations, wrap the multimap with a call to
#synchronizedSortedSetMultimap.
Call this method only when the simpler methods
TreeMultimap#create() and
TreeMultimap#create(Comparator,Comparator) won't suffice.
Note: the multimap assumes complete ownership over of
map and
the sets returned by
factory. Those objects should not be manually
updated and they should not use soft, weak, or phantom references.