[COLLECTIONS-679] Using existing class in example given in Javadocs. (#85)
This commit is contained in:
parent
8f39771cb5
commit
f72f1ae330
|
@ -33,13 +33,13 @@ import java.util.Set;
|
|||
* <p>
|
||||
* For example:
|
||||
* </p>
|
||||
* <pre>
|
||||
* MultiValuedMap<K, String> map = new MultiValuedHashMap<K, String>();
|
||||
* map.put(key, "A");
|
||||
* map.put(key, "B");
|
||||
* map.put(key, "C");
|
||||
* Collection<String> coll = map.get(key);
|
||||
* </pre>
|
||||
* <pre>{@code
|
||||
* MultiValuedMap<Integer, String> map = new ArrayListValuedHashMap<>();
|
||||
* map.put(1, "A");
|
||||
* map.put(1, "B");
|
||||
* map.put(1, "C");
|
||||
* Collection<String> coll = map.get(1);
|
||||
* }</pre>
|
||||
* <p>
|
||||
* <code>coll</code> will be a collection containing "A", "B", "C".
|
||||
* </p>
|
||||
|
|
Loading…
Reference in New Issue