本文整理了Java中com.jme3.system.AppSettings.keySet()
方法的一些代码示例,展示了AppSettings.keySet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.keySet()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:keySet
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Same as {@link #copyFrom(com.jme3.system.AppSettings) }, except
* doesn't overwrite settings that are already set.
*
* @param other The AppSettings to merge the settings from
*/
public void mergeFrom(AppSettings other) {
for (String key : other.keySet()) {
if( !this.containsKey(key) ) {
put(key, other.get(key));
}
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
for (String key : keySet()) {
Object val = get(key);
if (val instanceof Integer) {
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Saves settings into the Java preferences.
* <p>
* On the Windows operating system, the preferences are saved in the registry
* at the following key:<br>
* <code>HKEY_CURRENT_USER\Software\JavaSoft\Prefs\[preferencesKey]</code>
*
* @param preferencesKey The preferences key to save at. Generally the
* application's unique name.
*
* @throws BackingStoreException If an exception occurs with the preferences
*/
public void save(String preferencesKey) throws BackingStoreException {
Preferences prefs = Preferences.userRoot().node(preferencesKey);
for (String key : keySet()) {
prefs.put(key, get(key).toString());
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Same as {@link #copyFrom(com.jme3.system.AppSettings) }, except
* doesn't overwrite settings that are already set.
*
* @param other The AppSettings to merge the settings from
*/
public void mergeFrom(AppSettings other) {
for (String key : other.keySet()) {
if (get(key) == null) {
put(key, other.get(key));
}
}
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Same as {@link #copyFrom(com.jme3.system.AppSettings) }, except
* doesn't overwrite settings that are already set.
*
* @param other The AppSettings to merge the settings from
*/
public void mergeFrom(AppSettings other) {
for (String key : other.keySet()) {
if (get(key) == null) {
put(key, other.get(key));
}
}
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
for (String key : keySet()) {
Object val = get(key);
if (val instanceof Integer) {
内容来源于网络,如有侵权,请联系作者删除!