Crossfire JXClient, Trunk
|
Public Member Functions | |
String | getComment () |
T | getDefaultValue () |
String | getKey () |
SettingsEntry (@NotNull final String key, @NotNull final T defaultValue, @Nullable final String comment) | |
Private Attributes | |
final String | comment |
final T | defaultValue |
final String | key |
An entry in the settings file. It consists of a key/value pair and a comment that explains the entry.
<T> | the type of the values |
Definition at line 34 of file SettingsEntry.java.
com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.SettingsEntry | ( | @NotNull final String | key, |
@NotNull final T | defaultValue, | ||
@Nullable final String | comment | ||
) |
Creates a new instance.
key | the key in the settings file |
defaultValue | the default value if the key is missing from the settings file |
comment | the comment to add to the settings file or null
|
Definition at line 62 of file SettingsEntry.java.
String com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.getComment | ( | ) |
Returns the command to add to the settings file.
Definition at line 91 of file SettingsEntry.java.
T com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.getDefaultValue | ( | ) |
Returns the default value if the key is missing from the settings file.
Definition at line 82 of file SettingsEntry.java.
String com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.getKey | ( | ) |
Returns the key in the settings file.
Definition at line 73 of file SettingsEntry.java.
|
private |
The comment to add to the settings file. Set to
if unknown.
Definition at line 52 of file SettingsEntry.java.
Referenced by com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.getComment(), and com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.SettingsEntry().
|
private |
The default value if the key is missing from the settings file.
Definition at line 46 of file SettingsEntry.java.
Referenced by com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.getDefaultValue(), and com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.SettingsEntry().
|
private |
The key in the settings file.
Definition at line 40 of file SettingsEntry.java.
Referenced by com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.getKey(), and com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.SettingsEntry().