1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
14 * @author Toni Kalajainen
16 package org.simantics.utils.datastructures.cache;
18 import java.util.Hashtable;
22 * Registry is a value store where values are pre-registered and not
23 * requested on-demand as with strong and weak caches.
25 * All values must be explicitly provided and removed.
29 public class Registry<K, V> extends Hashtable<K, V> implements IMapProvider<K, V>, Map<K, V> {
31 private static final long serialVersionUID = 8509496982057736486L;
37 public Registry(int initialCapacity, float loadFactor) {
38 super(initialCapacity, loadFactor);
41 public Registry(int initialCapacity) {
42 super(initialCapacity);
45 public Registry(Map<? extends K, ? extends V> t) {