⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disabledpreferences.java

📁 Standord Classifier实现了一个基于Java的最大熵分类器。用于模式识别
💻 JAVA
字号:
package edu.stanford.nlp.util;import java.util.prefs.AbstractPreferences;import java.util.prefs.BackingStoreException;/** * A do-nothing Preferences implementation so that we can avoid the hassles * of the JVM Preference implementations. * Taken from: http://www.allaboutbalance.com/disableprefs/index.html * * @author Robert Slifka * @version 2003/03/24 */public class DisabledPreferences extends AbstractPreferences {    public DisabledPreferences() {        super(null, "");    }    protected void putSpi(String key, String value) {    }    protected String getSpi(String key) {        return null;    }    protected void removeSpi(String key) {    }    protected void removeNodeSpi() throws BackingStoreException {    }    protected String[] keysSpi() throws BackingStoreException {        return new String[0];    }    protected String[] childrenNamesSpi()            throws BackingStoreException {        return new String[0];    }    protected AbstractPreferences childSpi(String name) {        return null;    }    protected void syncSpi() throws BackingStoreException {    }    protected void flushSpi() throws BackingStoreException {    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -