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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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