Example usage for com.badlogic.gdx Preferences get

List of usage examples for com.badlogic.gdx Preferences get

Introduction

In this page you can find the example usage for com.badlogic.gdx Preferences get.

Prototype

public Map<String, ?> get();

Source Link

Document

Returns a read only Map with all the key, objects of the preferences.

Usage

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*/
        }
    }
}