@@ -173,7 +173,9 @@ private Multimaps() {}
173
173
174
174
/**
175
175
* Creates a new {@code Multimap} backed by {@code map}, whose internal value collections are
176
- * generated by {@code factory}.
176
+ * generated by {@code factory}. Most users should prefer {@link MultimapBuilder}, though a small
177
+ * number of users will need this method to cover map or collection types that {@link
178
+ * MultimapBuilder} does not support.
177
179
*
178
180
* <p><b>Warning: do not use</b> this method when the collections returned by {@code factory}
179
181
* implement either {@link List} or {@code Set}! Use the more specific method {@link
@@ -296,7 +298,9 @@ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFo
296
298
297
299
/**
298
300
* Creates a new {@code ListMultimap} that uses the provided map and factory. It can generate a
299
- * multimap based on arbitrary {@link Map} and {@link List} classes.
301
+ * multimap based on arbitrary {@link Map} and {@link List} classes. Most users should prefer
302
+ * {@link MultimapBuilder}, though a small number of users will need this method to cover map or
303
+ * collection types that {@link MultimapBuilder} does not support.
300
304
*
301
305
* <p>The {@code factory}-generated and {@code map} classes determine the multimap iteration
302
306
* order. They also specify the behavior of the {@code equals}, {@code hashCode}, and {@code
@@ -380,7 +384,9 @@ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFo
380
384
381
385
/**
382
386
* Creates a new {@code SetMultimap} that uses the provided map and factory. It can generate a
383
- * multimap based on arbitrary {@link Map} and {@link Set} classes.
387
+ * multimap based on arbitrary {@link Map} and {@link Set} classes. Most users should prefer
388
+ * {@link MultimapBuilder}, though a small number of users will need this method to cover map or
389
+ * collection types that {@link MultimapBuilder} does not support.
384
390
*
385
391
* <p>The {@code factory}-generated and {@code map} classes determine the multimap iteration
386
392
* order. They also specify the behavior of the {@code equals}, {@code hashCode}, and {@code
0 commit comments