org.openstreetmap.josm.data.preferences
Class CollectionProperty

java.lang.Object
  extended by org.openstreetmap.josm.data.preferences.AbstractProperty<java.util.Collection<java.lang.String>>
      extended by org.openstreetmap.josm.data.preferences.CollectionProperty

public class CollectionProperty
extends AbstractProperty<java.util.Collection<java.lang.String>>

A property containing a Collection of String as value.


Field Summary
 
Fields inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
defaultValue, key
 
Constructor Summary
CollectionProperty(java.lang.String key, java.util.Collection<java.lang.String> defaultValue)
          Constructs a new CollectionProperty.
 
Method Summary
 java.util.Collection<java.lang.String> get()
          Replies the value of this property.
 boolean put(java.util.Collection<java.lang.String> value)
          Sets this property to the specified value.
 
Methods inherited from class org.openstreetmap.josm.data.preferences.AbstractProperty
getDefaultValue, getKey, isSet, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionProperty

public CollectionProperty(java.lang.String key,
                          java.util.Collection<java.lang.String> defaultValue)
Constructs a new CollectionProperty.

Parameters:
key - The property key
defaultValue - The default value
Method Detail

get

public java.util.Collection<java.lang.String> get()
Description copied from class: AbstractProperty
Replies the value of this property.

Specified by:
get in class AbstractProperty<java.util.Collection<java.lang.String>>
Returns:
the value of this property

put

public boolean put(java.util.Collection<java.lang.String> value)
Description copied from class: AbstractProperty
Sets this property to the specified value.

Specified by:
put in class AbstractProperty<java.util.Collection<java.lang.String>>
Parameters:
value - The new value of this property
Returns:
true if something has changed (i.e. value is different than before)


JOSM