Class ListListSetting
- java.lang.Object
-
- org.openstreetmap.josm.spi.preferences.AbstractSetting<java.util.List<java.util.List<java.lang.String>>>
-
- org.openstreetmap.josm.spi.preferences.ListListSetting
-
- All Implemented Interfaces:
Setting<java.util.List<java.util.List<java.lang.String>>>
public class ListListSetting extends AbstractSetting<java.util.List<java.util.List<java.lang.String>>>
Setting containing aListofLists ofStringvalues.- 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 ListListSetting(java.util.List<java.util.List<java.lang.String>> value)Constructs a newListListSettingwith the given value
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidconsistencyTest()ListListSettingcopy()Clone the current object.static ListListSettingcreate(java.util.Collection<java.util.Collection<java.lang.String>> value)Convenience factory method.ListListSettinggetNullInstance()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 Detail
-
ListListSetting
public ListListSetting(java.util.List<java.util.List<java.lang.String>> value)
Constructs a newListListSettingwith the given value- Parameters:
value- The setting value
-
-
Method Detail
-
create
public static ListListSetting create(java.util.Collection<java.util.Collection<java.lang.String>> value)
Convenience factory method.- Parameters:
value- the value- Returns:
- a corresponding ListListSetting object
-
copy
public ListListSetting copy()
Description copied from interface:SettingClone 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:SettingEnable usage of the visitor pattern.- Parameters:
visitor- the visitor
-
getNullInstance
public ListListSetting 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()
-
-