Package com.atlassian.bitbucket.property
Class SimplePropertySupport
java.lang.Object
com.atlassian.bitbucket.property.SimplePropertySupport
- All Implemented Interfaces:
PropertySupport
- Direct Known Subclasses:
ChangeContext
An implementation of
PropertySupport for use in SCM entities, with write-once immutability provided by
setProperties(PropertyMap). Note: The recommended way to use this class is by composition.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimplePropertySupport.AbstractPropertyBuilder<B extends SimplePropertySupport.AbstractPropertyBuilder<B>> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidsetProperties(PropertyMap properties) Set properties on this entity.
-
Constructor Details
-
SimplePropertySupport
-
-
Method Details
-
getProperties
- Specified by:
getPropertiesin interfacePropertySupport- Returns:
- the properties associated with this object
-
setProperties
Set properties on this entity. If the properties on this instance are already set, this will merge theproperties. The new properties will overwrite existing properties with the same key.- Parameters:
properties- the properties to set- See Also:
-