Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.settings.SettingsEntry< T > Class Template Reference
Inheritance diagram for com.realtime.crossfire.jxclient.settings.SettingsEntry< T >:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.settings.SettingsEntry< T >:
Collaboration graph

Public Member Functions

String getComment ()
 
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
 

Detailed Description

An entry in the settings file. It consists of a key/value pair and a comment that explains the entry.

Parameters
<T>the type of the values
Author
Andreas Kirschbaum

Definition at line 34 of file SettingsEntry.java.

Constructor & Destructor Documentation

◆ SettingsEntry()

com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.SettingsEntry ( @NotNull final String  key,
@NotNull final T  defaultValue,
@Nullable final String  comment 
)

Creates a new instance.

Parameters
keythe key in the settings file
defaultValuethe default value if the key is missing from the settings file
commentthe comment to add to the settings file or
null
if unknown

Definition at line 62 of file SettingsEntry.java.

Member Function Documentation

◆ getComment()

Returns the command to add to the settings file.

Returns
the comment or
null
if unknown

Definition at line 91 of file SettingsEntry.java.

◆ getDefaultValue()

Returns the default value if the key is missing from the settings file.

Returns
the default value

Definition at line 82 of file SettingsEntry.java.

◆ getKey()

Returns the key in the settings file.

Returns
the key

Definition at line 73 of file SettingsEntry.java.

Member Data Documentation

◆ comment

final String com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.comment
private

◆ defaultValue

final T com.realtime.crossfire.jxclient.settings.SettingsEntry< T >.defaultValue
private

◆ key


The documentation for this class was generated from the following file: