Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lejos.nxt
Class SystemSettings

    java.lang.Object
      lejos.nxt.SystemSettings

    public class SystemSettings

extends Object

This class is designed for use by other lejos classes to read persistent settings. User programs should use the Settings class

Author:
  Lawrie Griffiths

Constructor Summary
`SystemSettings()`

Method Summary
`static int` | `getIntSetting(String key, int defaultValue)` Get the value for a leJOS NXJ persistent setting as an Integer
`static String` | `getStringSetting(String key, String defaultValue)` Get the value for a leJOS NXJ persistent setting as a String

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait`

Constructor Detail

### SystemSettings

    public SystemSettings()

Method Detail

### getStringSetting

    public static String getStringSetting(String key,
                                          String defaultValue)

  Get the value for a leJOS NXJ persistent setting as a String

  Parameters:
    `key` - the name of the setting
    `defaultValue` - the default value
  Returns:
    the value

### getIntSetting

    public static int getIntSetting(String key,
                                    int defaultValue)

  Get the value for a leJOS NXJ persistent setting as an Integer

  Parameters:
    `key` - the name of the setting
    `defaultValue` - the default value
  Returns:
    the value

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD