Crossfire JXClient, Trunk
R20561
|
An entry in the settings file. More...
Public Member Functions | |
String | getComment () |
Returns the command to add to the settings file. More... | |
T | getDefaultValue () |
Returns the default value if the key is missing from the settings file. More... | |
String | getKey () |
Returns the key in the settings file. More... | |
SettingsEntry (@NotNull final String key, @NotNull final T defaultValue, @Nullable final String comment) | |
Creates a new instance. More... | |
Private Attributes | |
final String | comment |
The comment to add to the settings file. More... | |
final T | defaultValue |
The default value if the key is missing from the settings file. More... | |
final String | key |
The key in the settings file. More... | |
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 33 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 61 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 90 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 81 of file SettingsEntry.java.
String com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.getKey | ( | ) |
Returns the key in the settings file.
Definition at line 72 of file SettingsEntry.java.
|
private |
The comment to add to the settings file.
Set to
if unknown.
Definition at line 51 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 45 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 39 of file SettingsEntry.java.
Referenced by com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.getKey(), and com.realtime.crossfire.jxclient.settings.SettingsEntry< Boolean >.SettingsEntry().