T
- public abstract class ConsoleSetting<T> extends Object implements Setting<T>, Help
Constructor and Description |
---|
ConsoleSetting(T initValue)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear setting
|
T |
get()
Get the current value for this setting
|
String |
getAsString()
Get the value for this setting as a string
|
String |
getHelpLong()
Get long description
|
String |
getHelpShort()
Get short description, small enough to fit on one console row
|
T |
getInitValue()
Get the initial value
|
Class |
getType()
Get the parameter type
|
void |
set(T value)
Set the value for this setting
|
abstract void |
setFromString(String value)
Set the value for this setting from a string
|
public ConsoleSetting(T initValue)
initValue
- initial valuepublic T getInitValue()
Setting
getInitValue
in interface Setting<T>
public T get()
Setting
public void set(T value)
Setting
public abstract void setFromString(String value) throws IllegalArgumentException
value
- string valueIllegalArgumentException
public String getAsString()
public void clear()
Setting
public String getHelpShort()
getHelpShort
in interface Help
public String getHelpLong()
getHelpLong
in interface Help
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.