APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.backends.headless

public Class HeadlessPreferences

extends Object
implements Preferences
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.Preferences
Imports
com.badlogic.gdx.Files.FileType, .Preferences, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.GdxRuntimeException, .StreamUtils, java.io.BufferedInputStream, .BufferedOutputStream, .File, .InputStream, .OutputStream, java.util.HashMap, .Map, .Map.Entry, .Properties

Field Summary

Modifier and TypeField and Description
private final FileHandle
private final Properties

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
public void
flush()

Implements com.badlogic.gdx.Preferences.flush.

Makes sure the preferences are persisted.

public Map<String, ?>
get()

Implements com.badlogic.gdx.Preferences.get.

Returns a read only Map<string, object> with all the key, objects of the preferences.

public boolean
public boolean
getBoolean(String key, boolean defValue)

Implements com.badlogic.gdx.Preferences.getBoolean.

public float
public float
getFloat(String key, float defValue)

Implements com.badlogic.gdx.Preferences.getFloat.

public int
public int
public long
public long
getLong(String key, long defValue)

Implements com.badlogic.gdx.Preferences.getLong.

public String
public String
public Preferences
public Preferences
public Preferences
public Preferences
public Preferences
public Preferences
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileback to summary
private final FileHandle file
propertiesback to summary
private final Properties properties

Constructor Detail

HeadlessPreferencesback to summary
public HeadlessPreferences(String name, String directory)
HeadlessPreferencesback to summary
public HeadlessPreferences(FileHandle file)

Method Detail

clearback to summary
public void clear()

Implements com.badlogic.gdx.Preferences.clear.

Annotations
@Override
containsback to summary
public boolean contains(String key)

Implements com.badlogic.gdx.Preferences.contains.

Annotations
@Override
flushback to summary
public void flush()

Implements com.badlogic.gdx.Preferences.flush.

Doc from com.badlogic.gdx.Preferences.flush.

Makes sure the preferences are persisted.

Annotations
@Override
getback to summary
public Map<String, ?> get()

Implements com.badlogic.gdx.Preferences.get.

Doc from com.badlogic.gdx.Preferences.get.

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

Annotations
@Override
getBooleanback to summary
public boolean getBoolean(String key)

Implements com.badlogic.gdx.Preferences.getBoolean.

Annotations
@Override
getBooleanback to summary
public boolean getBoolean(String key, boolean defValue)

Implements com.badlogic.gdx.Preferences.getBoolean.

Annotations
@Override
getFloatback to summary
public float getFloat(String key)

Implements com.badlogic.gdx.Preferences.getFloat.

Annotations
@Override
getFloatback to summary
public float getFloat(String key, float defValue)

Implements com.badlogic.gdx.Preferences.getFloat.

Annotations
@Override
getIntegerback to summary
public int getInteger(String key)

Implements com.badlogic.gdx.Preferences.getInteger.

Annotations
@Override
getIntegerback to summary
public int getInteger(String key, int defValue)

Implements com.badlogic.gdx.Preferences.getInteger.

Annotations
@Override
getLongback to summary
public long getLong(String key)

Implements com.badlogic.gdx.Preferences.getLong.

Annotations
@Override
getLongback to summary
public long getLong(String key, long defValue)

Implements com.badlogic.gdx.Preferences.getLong.

Annotations
@Override
getStringback to summary
public String getString(String key)

Implements com.badlogic.gdx.Preferences.getString.

Annotations
@Override
getStringback to summary
public String getString(String key, String defValue)

Implements com.badlogic.gdx.Preferences.getString.

Annotations
@Override
putback to summary
public Preferences put(Map<String, ?> vals)

Implements com.badlogic.gdx.Preferences.put.

Annotations
@Override
putBooleanback to summary
public Preferences putBoolean(String key, boolean val)

Implements com.badlogic.gdx.Preferences.putBoolean.

Annotations
@Override
putFloatback to summary
public Preferences putFloat(String key, float val)

Implements com.badlogic.gdx.Preferences.putFloat.

Annotations
@Override
putIntegerback to summary
public Preferences putInteger(String key, int val)

Implements com.badlogic.gdx.Preferences.putInteger.

Annotations
@Override
putLongback to summary
public Preferences putLong(String key, long val)

Implements com.badlogic.gdx.Preferences.putLong.

Annotations
@Override
putStringback to summary
public Preferences putString(String key, String val)

Implements com.badlogic.gdx.Preferences.putString.

Annotations
@Override
removeback to summary
public void remove(String key)

Implements com.badlogic.gdx.Preferences.remove.

Annotations
@Override