Tabnine Logo
LwjglPreferences
Code IndexAdd Tabnine to your IDE (free)

How to use
LwjglPreferences
in
com.badlogic.gdx.backends.lwjgl

Best Java code snippets using com.badlogic.gdx.backends.lwjgl.LwjglPreferences (Showing top 20 results out of 315)

origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: libgdx/libgdx

@Override
public boolean getBoolean (String key) {
  return getBoolean(key, false);
}
origin: libgdx/libgdx

@Override
public float getFloat (String key) {
  return getFloat(key, 0);
}
origin: libgdx/libgdx

@Override
public Preferences put (Map<String, ?> vals) {
  for (Entry<String, ?> val : vals.entrySet()) {
    if (val.getValue() instanceof Boolean) putBoolean(val.getKey(), (Boolean)val.getValue());
    if (val.getValue() instanceof Integer) putInteger(val.getKey(), (Integer)val.getValue());
    if (val.getValue() instanceof Long) putLong(val.getKey(), (Long)val.getValue());
    if (val.getValue() instanceof String) putString(val.getKey(), (String)val.getValue());
    if (val.getValue() instanceof Float) putFloat(val.getKey(), (Float)val.getValue());
  }
  return this;
}
origin: libgdx/libgdx

@Override
public int getInteger (String key) {
  return getInteger(key, 0);
}
origin: libgdx/libgdx

@Override
public String getString (String key) {
  return getString(key, "");
}
origin: libgdx/libgdx

@Override
public long getLong (String key) {
  return getLong(key, 0);
}
origin: libgdx/libgdx

@Override
public Preferences put (Map<String, ?> vals) {
  for (Entry<String, ?> val : vals.entrySet()) {
    if (val.getValue() instanceof Boolean) putBoolean(val.getKey(), (Boolean)val.getValue());
    if (val.getValue() instanceof Integer) putInteger(val.getKey(), (Integer)val.getValue());
    if (val.getValue() instanceof Long) putLong(val.getKey(), (Long)val.getValue());
    if (val.getValue() instanceof String) putString(val.getKey(), (String)val.getValue());
    if (val.getValue() instanceof Float) putFloat(val.getKey(), (Float)val.getValue());
  }
  return this;
}
origin: libgdx/libgdx

@Override
public int getInteger (String key) {
  return getInteger(key, 0);
}
origin: libgdx/libgdx

@Override
public String getString (String key) {
  return getString(key, "");
}
origin: libgdx/libgdx

@Override
public long getLong (String key) {
  return getLong(key, 0);
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public Preferences put (Map<String, ?> vals) {
  for (Entry<String, ?> val : vals.entrySet()) {
    if (val.getValue() instanceof Boolean) putBoolean(val.getKey(), (Boolean)val.getValue());
    if (val.getValue() instanceof Integer) putInteger(val.getKey(), (Integer)val.getValue());
    if (val.getValue() instanceof Long) putLong(val.getKey(), (Long)val.getValue());
    if (val.getValue() instanceof String) putString(val.getKey(), (String)val.getValue());
    if (val.getValue() instanceof Float) putFloat(val.getKey(), (Float)val.getValue());
  }
  return this;
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public int getInteger (String key) {
  return getInteger(key, 0);
}
origin: libgdx/libgdx

@Override
public boolean getBoolean (String key) {
  return getBoolean(key, false);
}
origin: libgdx/libgdx

@Override
public float getFloat (String key) {
  return getFloat(key, 0);
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public String getString (String key) {
  return getString(key, "");
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public long getLong (String key) {
  return getLong(key, 0);
}
origin: libgdx/libgdx

@Override
public Preferences getPreferences (String name) {
  if (preferences.containsKey(name)) {
    return preferences.get(name);
  } else {
    Preferences prefs = new LwjglPreferences(name, ".prefs/");
    preferences.put(name, prefs);
    return prefs;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public boolean getBoolean (String key) {
  return getBoolean(key, false);
}
com.badlogic.gdx.backends.lwjglLwjglPreferences

Most used methods

  • <init>
  • getBoolean
  • getFloat
  • getInteger
  • getLong
  • getString
  • putBoolean
  • putFloat
  • putInteger
  • putLong
  • putString
  • putString

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now