Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.settings.SettingsEntry< T > Class Template Reference

An entry in the settings file. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.settings.SettingsEntry< T >:
+ Collaboration diagram for com.realtime.crossfire.jxclient.settings.SettingsEntry< T >:

Public Member Functions

String getComment ()
 Returns the command to add to the settings file. More...
 
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...
 

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 33 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 61 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 90 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 81 of file SettingsEntry.java.

◆ getKey()

Returns the key in the settings file.

Returns
the key

Definition at line 72 of file SettingsEntry.java.

Member Data Documentation

◆ comment

◆ defaultValue

◆ key


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