Class ListProperty
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.AbstractProperty<java.util.List<java.lang.String>>
-
- org.openstreetmap.josm.data.preferences.ListProperty
-
public class ListProperty extends AbstractProperty<java.util.List<java.lang.String>>
A property containing aListofStringas 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(java.lang.String key, java.util.List<java.lang.String> defaultValue)Constructs a newCollectionProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>get()Replies the value of this property.booleanput(java.util.List<java.lang.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(java.lang.String key, java.util.List<java.lang.String> defaultValue)
Constructs a newCollectionProperty.- Parameters:
key- The property keydefaultValue- The default value
-
-
Method Detail
-
get
public java.util.List<java.lang.String> get()
Description copied from class:AbstractPropertyReplies the value of this property.- Specified by:
getin classAbstractProperty<java.util.List<java.lang.String>>- Returns:
- the value of this property
-
put
public boolean put(java.util.List<java.lang.String> value)
Description copied from class:AbstractPropertySets this property to the specified value.- Specified by:
putin classAbstractProperty<java.util.List<java.lang.String>>- Parameters:
value- The new value of this property- Returns:
- true if something has changed (i.e. value is different than before)
-
-