]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/cache/Registry.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.datastructures / src / org / simantics / utils / datastructures / cache / Registry.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 /*
13  *
14  * @author Toni Kalajainen
15  */
16 package org.simantics.utils.datastructures.cache;
17
18 import java.util.Hashtable;
19 import java.util.Map;
20
21 /**
22  * Registry is a value store where values are pre-registered and not 
23  * requested on-demand as with strong and weak caches.
24  * 
25  * All values must be explicitly provided and removed.
26  * 
27  *
28  */
29 public class Registry<K, V> extends Hashtable<K, V> implements IMapProvider<K, V>, Map<K, V> {
30
31         private static final long serialVersionUID = 8509496982057736486L;
32
33         public Registry() {
34                 super();
35         }
36
37         public Registry(int initialCapacity, float loadFactor) {
38                 super(initialCapacity, loadFactor);
39         }
40
41         public Registry(int initialCapacity) {
42                 super(initialCapacity);
43         }
44
45         public Registry(Map<? extends K, ? extends V> t) {
46                 super(t);
47         }
48         
49 }