public class AppPreferencesModel
extends java.lang.Object
Constructor and Description |
---|
AppPreferencesModel(@NotNull java.lang.String serverDefault,
@NotNull java.lang.String clientDefault,
@NotNull java.lang.String editorDefault)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getClient()
Returns the client setting.
|
@NotNull java.lang.String |
getClientDefault()
Returns the client setting's default value.
|
@NotNull java.lang.String |
getEditor()
Returns the editor setting.
|
@NotNull java.lang.String |
getEditorDefault()
Returns the editor setting's default value.
|
@NotNull java.lang.String |
getServer()
Returns the server setting.
|
@NotNull java.lang.String |
getServerDefault()
Returns the server setting's default value.
|
static void |
setClient(@NotNull java.lang.CharSequence client)
Sets the client setting.
|
static void |
setEditor(@NotNull java.lang.CharSequence editor)
Sets the editor setting.
|
static void |
setServer(@NotNull java.lang.CharSequence server)
Sets the server setting.
|
static @NotNull java.util.List<java.lang.String> |
splitCommand(@NotNull java.lang.String command)
Splits a command string into an array.
|
public AppPreferencesModel(@NotNull @NotNull java.lang.String serverDefault, @NotNull @NotNull java.lang.String clientDefault, @NotNull @NotNull java.lang.String editorDefault)
serverDefault
- the default value for the server settingclientDefault
- the default value for the client settingeditorDefault
- the default value for the editor settingpublic static void setServer(@NotNull @NotNull java.lang.CharSequence server)
server
- the server settingpublic static void setClient(@NotNull @NotNull java.lang.CharSequence client)
client
- the client settingpublic static void setEditor(@NotNull @NotNull java.lang.CharSequence editor)
editor
- the editor setting@NotNull public @NotNull java.lang.String getServer()
@NotNull public @NotNull java.lang.String getClient()
@NotNull public @NotNull java.lang.String getEditor()
@NotNull public static @NotNull java.util.List<java.lang.String> splitCommand(@NotNull @NotNull java.lang.String command)
command
- the command to split@NotNull public @NotNull java.lang.String getServerDefault()
@NotNull public @NotNull java.lang.String getClientDefault()
@NotNull public @NotNull java.lang.String getEditorDefault()