List of usage examples for com.badlogic.gdx Preferences get
public Map<String, ?> get();
From source file:com.tussle.logging.PreferenceLogFilter.java
License:Open Source License
public PreferenceLogFilter() { Preferences logPrefs = Utility.getPreferencesFor("log"); topLevel = logPrefs.getInteger("level", 1000); for (String entry : logPrefs.get().keySet()) { if (entry.endsWith("/level")) { try { Class<?> czz = Class.forName(entry.substring(0, entry.length() - 6)); systemLevels.put(czz, logPrefs.getInteger(entry)); } catch (ClassNotFoundException ex) { Logger.getLogger(this.getClass().toString()).warning( entry.substring(0, entry.length() - 6) + " is not a valid class name. Skipping. "); }/*from ww w .j av a2 s. c o m*/ } } }