public class CollectionProperty extends AbstractProperty<java.util.Collection<java.lang.String>>
Collection
of String
as value.AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
defaultValue, key, preferences
Constructor and Description |
---|
CollectionProperty(java.lang.String key,
java.util.Collection<java.lang.String> defaultValue)
Constructs a new
CollectionProperty . |
Modifier and Type | Method and Description |
---|---|
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.
|
addListener, addListenerImpl, addWeakListener, addWeakListenerImpl, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
public CollectionProperty(java.lang.String key, java.util.Collection<java.lang.String> defaultValue)
CollectionProperty
.key
- The property keydefaultValue
- The default valuepublic java.util.Collection<java.lang.String> get()
AbstractProperty
get
in class AbstractProperty<java.util.Collection<java.lang.String>>
public boolean put(java.util.Collection<java.lang.String> value)
AbstractProperty
put
in class AbstractProperty<java.util.Collection<java.lang.String>>
value
- The new value of this property