📄 registry.java
字号:
package Registry;
import java.util.Hashtable;
public class Registry
{
private Hashtable hTable = new Hashtable();
private static Registry _instance = null;
private Registry() { }
public static Registry instance()
{
if (_instance == null)
_instance = new Registry();
return _instance;
}
public void put(String theKey, Entry theEntry)
{
hTable.put(theKey, theEntry);
}
public Entry get(String aKey)
{
return (Entry)hTable.get(aKey);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -