Class ListSetting
java.lang.Object
org.openstreetmap.josm.spi.preferences.AbstractSetting<List<String>>
org.openstreetmap.josm.spi.preferences.ListSetting
- Since:
- 12881 (moved from package
org.openstreetmap.josm.data.preferences)
-
Field Summary
Fields inherited from class org.openstreetmap.josm.spi.preferences.AbstractSetting
isNew, time, value -
Constructor Summary
ConstructorsConstructorDescriptionListSetting(List<String> value) Constructs a newListSettingwith the given value -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopy()Clone the current object.static ListSettingcreate(Collection<String> value) Convenience factory method.Returns a setting whose value is null.voidvisit(SettingVisitor visitor) Enable usage of the visitor pattern.Methods inherited from class org.openstreetmap.josm.spi.preferences.AbstractSetting
equals, getTime, getValue, hashCode, isNew, setNew, setTime, toString
-
Constructor Details
-
ListSetting
Constructs a newListSettingwith the given value- Parameters:
value- The setting value
-
-
Method Details
-
create
Convenience factory method.- Parameters:
value- the value- Returns:
- a corresponding ListSetting object
-
copy
Description copied from interface:SettingClone the current object.- Returns:
- an identical copy of the current object
-
consistencyTest
-
visit
Description copied from interface:SettingEnable usage of the visitor pattern.- Parameters:
visitor- the visitor
-
getNullInstance
Description copied from interface:SettingReturns a setting whose value is null. Cannot be static, because there is no static inheritance.- Returns:
- a Setting object that isn't null itself, but returns null
for
Setting.getValue()
-