View Javadoc

1   /*
2    * Copyright (C) 2004 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 library is free software; you can redistribute it and/or
8    * modify it under the terms of the GNU Lesser General Public
9    * License as published by the Free Software Foundation; either
10   * version 2.1 of the License, or (at your option) any later version.
11   *
12   * This library 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 GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this library; if not, visit
19   * http://www.gnu.org/licenses/lgpl.html or write to the Free Software
20   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, 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.2 $, $Date: 2004/09/06 14:16:44 $, $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  }