1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package de.fu_berlin.ties;
23
24 import java.util.HashMap;
25 import java.util.Map;
26
27 /***
28 * A map used to store context-specific key/value pairs in the
29 * {@linkplain de.fu_berlin.ties.Processor processing architecture}.
30 *
31 * @author Christian Siefkes
32 * @version $Revision: 1.5 $, $Date: 2006/10/21 16:03:52 $, $Author: siefkes $
33 */
34 public class ContextMap extends HashMap<String, Object> {
35
36 /***
37 * Creates a new instance.
38 */
39 public ContextMap() {
40 super();
41 }
42
43 /***
44 * Creates a new instance.
45 *
46 * @param initialCapacity the initial capacity
47 * @throws IllegalArgumentException if the initial capacity is negative or
48 * the load factor is nonpositive
49 */
50 public ContextMap(final int initialCapacity)
51 throws IllegalArgumentException {
52 super(initialCapacity);
53 }
54
55 /***
56 * Creates a new instance.
57 *
58 * @param initialCapacity the initial capacity
59 * @param loadFactor the load factor
60 * @throws IllegalArgumentException if the initial capacity is negative or
61 * the load factor is nonpositive
62 */
63 public ContextMap(final int initialCapacity, final float loadFactor)
64 throws IllegalArgumentException {
65 super(initialCapacity, loadFactor);
66 }
67
68 /***
69 * Creates a new instance.
70 * @param m the map whose mappings are to be placed in this map
71 * @throws NullPointerException if the specified map is null
72 */
73 public ContextMap(final Map<String, Object> m) throws NullPointerException {
74 super(m);
75 }
76
77 }