protected abstract static class Settings.SettingType
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
convert(Settings settings,
java.lang.Object value)
Converts an object to the type of the setting.
|
protected abstract java.lang.Object |
merge(Settings settings,
java.lang.Object defValue,
java.lang.Object value)
Merges two setting values.
|
protected abstract java.lang.Object |
parse(Settings settings,
java.lang.String value,
boolean forceStr)
Converts a string value to the type of the setting.
|
protected abstract java.lang.Object convert(Settings settings, java.lang.Object value) throws SettingException
null
value.
Must not modify the value object!
Must accept values that were earlier returned by this method.SettingException
protected abstract java.lang.Object parse(Settings settings, java.lang.String value, boolean forceStr) throws SettingException
SettingException
protected abstract java.lang.Object merge(Settings settings, java.lang.Object defValue, java.lang.Object value) throws SettingException
null
value.
Must not modify the value objects; create new object for the merged value.
Both value parameter holds already converted (via convert(Settings, Object)
or parse(Settings, String, boolean)
) values.SettingException