View Javadoc

1   /*
2    * Copyright (C) 2004-2006 Christian Siefkes <christian@siefkes.net>.
3    * Development of this software is supported by the German Research Society,
4    * Berlin-Brandenburg Graduate School in Distributed Information Systems
5    * (DFG grant no. GRK 316).
6    *
7    * This program is free software; you can redistribute it and/or modify
8    * it under the terms of the GNU General Public License as published by
9    * the Free Software Foundation; either version 2 of the License, or
10   * (at your option) any later version.
11   *
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with this program; if not, visit
19   * http://www.gnu.org/licenses/gpl.html or write to the Free Software
20   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
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  }