Class MapListSetting
- java.lang.Object
-
- org.openstreetmap.josm.spi.preferences.AbstractSetting<java.util.List<java.util.Map<java.lang.String,java.lang.String>>>
-
- org.openstreetmap.josm.spi.preferences.MapListSetting
-
- All Implemented Interfaces:
Setting<java.util.List<java.util.Map<java.lang.String,java.lang.String>>>
public class MapListSetting extends AbstractSetting<java.util.List<java.util.Map<java.lang.String,java.lang.String>>>
Setting containing aList
ofMap
s ofString
values.- 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
Constructors Constructor Description MapListSetting(java.util.List<java.util.Map<java.lang.String,java.lang.String>> value)
Constructs a newMapListSetting
with the given value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
consistencyTest()
MapListSetting
copy()
Clone the current object.MapListSetting
getNullInstance()
Returns a setting whose value is null.void
visit(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 Detail
-
MapListSetting
public MapListSetting(java.util.List<java.util.Map<java.lang.String,java.lang.String>> value)
Constructs a newMapListSetting
with the given value- Parameters:
value
- The setting value
-
-
Method Detail
-
copy
public MapListSetting copy()
Description copied from interface:Setting
Clone the current object.- Returns:
- an identical copy of the current object
-
consistencyTest
private void consistencyTest()
-
visit
public void visit(SettingVisitor visitor)
Description copied from interface:Setting
Enable usage of the visitor pattern.- Parameters:
visitor
- the visitor
-
getNullInstance
public MapListSetting getNullInstance()
Description copied from interface:Setting
Returns 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()
-
-