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
Modifier and TypeClassDescriptionstatic class
SimplePropertySupport.AbstractPropertyBuilder<B extends SimplePropertySupport.AbstractPropertyBuilder<B>>
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
setProperties
(PropertyMap properties) Set properties on this entity.
-
Constructor Details
-
SimplePropertySupport
-
-
Method Details
-
getProperties
- Specified by:
getProperties
in 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:
-