public static class Preferences.ListSetting extends Preferences.AbstractSetting<List<String>>
value
Constructor and Description |
---|
ListSetting(List<String> value)
Constructs a new
ListSetting with the given value |
Modifier and Type | Method and Description |
---|---|
private void |
consistencyTest() |
Preferences.ListSetting |
copy()
Clone the current object.
|
static Preferences.ListSetting |
create(Collection<String> value)
Convenience factory method.
|
boolean |
equals(Object other) |
boolean |
equalVal(List<String> otherVal)
Check if the value of this Setting object is equal to the given value.
|
Preferences.ListSetting |
getNullInstance()
Returns a setting whose value is null.
|
void |
visit(Preferences.SettingVisitor visitor)
Enable usage of the visitor pattern.
|
getValue, hashCode, toString
public ListSetting(List<String> value)
ListSetting
with the given valuevalue
- The setting valuepublic static Preferences.ListSetting create(Collection<String> value)
value
- the valuepublic boolean equalVal(List<String> otherVal)
Preferences.Setting
otherVal
- the other valuepublic Preferences.ListSetting copy()
Preferences.Setting
private void consistencyTest()
public void visit(Preferences.SettingVisitor visitor)
Preferences.Setting
visitor
- the visitorpublic Preferences.ListSetting getNullInstance()
Preferences.Setting
Preferences.Setting.getValue()