Class ListProperty
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.AbstractProperty<List<String>>
-
- org.openstreetmap.josm.data.preferences.ListProperty
-
public class ListProperty extends AbstractProperty<List<String>>
A property containing aList
ofString
as value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
defaultValue, key, preferences
-
-
Constructor Summary
Constructors Constructor Description ListProperty(String key, List<String> defaultValue)
Constructs a newCollectionProperty
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
get()
Replies the value of this property.boolean
put(List<String> value)
Sets this property to the specified value.-
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
-
-
-
-
Constructor Detail
-
ListProperty
public ListProperty(String key, List<String> defaultValue)
Constructs a newCollectionProperty
.- Parameters:
key
- The property keydefaultValue
- The default value
-
-
Method Detail
-
get
public List<String> get()
Description copied from class:AbstractProperty
Replies the value of this property.- Specified by:
get
in classAbstractProperty<List<String>>
- Returns:
- the value of this property
-
put
public boolean put(List<String> value)
Description copied from class:AbstractProperty
Sets this property to the specified value.- Specified by:
put
in classAbstractProperty<List<String>>
- Parameters:
value
- The new value of this property- Returns:
- true if something has changed (i.e. value is different than before)
-
-