disabledpreferences.java
来自「Standord Classifier实现了一个基于Java的最大熵分类器。用于」· Java 代码 · 共 57 行
JAVA
57 行
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 + =
减小字号Ctrl + -
显示快捷键?