T - the type of the valuespublic class SettingsEntry<T>
extends java.lang.Object
| Constructor and Description |
|---|
SettingsEntry(@NotNull java.lang.String key,
T defaultValue,
@Nullable java.lang.String comment)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
getComment()
Returns the command to add to the settings file.
|
T |
getDefaultValue()
Returns the default value if the key is missing from the settings file.
|
@NotNull java.lang.String |
getKey()
Returns the key in the settings file.
|
public SettingsEntry(@NotNull
@NotNull java.lang.String key,
@NotNull
T defaultValue,
@Nullable
@Nullable java.lang.String comment)
key - the key in the settings filedefaultValue - the default value if the key is missing from the
settings filecomment - the comment to add to the settings file or null if
unknown@NotNull public @NotNull java.lang.String getKey()
@NotNull public T getDefaultValue()
@Nullable public @Nullable java.lang.String getComment()
null if unknown