1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.artifact.versioning;
20
21 import java.util.HashMap;
22 import java.util.Iterator;
23 import java.util.Map;
24
25 import org.apache.maven.artifact.Artifact;
26
27
28
29
30 @Deprecated
31 public class ManagedVersionMap extends HashMap<String, Artifact> {
32 public ManagedVersionMap(Map<String, Artifact> map) {
33 super();
34 if (map != null) {
35 putAll(map);
36 }
37 }
38
39 public String toString() {
40 StringBuilder buffer = new StringBuilder("ManagedVersionMap (" + size() + " entries)\n");
41 Iterator<String> iter = keySet().iterator();
42 while (iter.hasNext()) {
43 String key = iter.next();
44 buffer.append(key).append('=').append(get(key));
45 if (iter.hasNext()) {
46 buffer.append('\n');
47 }
48 }
49 return buffer.toString();
50 }
51 }