public class SimplePropertySupport extends Object implements PropertySupport
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.Modifier and Type | Class and Description |
---|---|
static class |
SimplePropertySupport.AbstractPropertyBuilder<B extends SimplePropertySupport.AbstractPropertyBuilder<B>> |
Constructor and Description |
---|
SimplePropertySupport(SimplePropertySupport.AbstractPropertyBuilder<?> builder) |
Modifier and Type | Method and Description |
---|---|
PropertyMap |
getProperties() |
void |
setProperties(PropertyMap properties)
Set properties on this entity.
|
public SimplePropertySupport(@Nonnull SimplePropertySupport.AbstractPropertyBuilder<?> builder)
@Nonnull public PropertyMap getProperties()
getProperties
in interface PropertySupport
public void setProperties(@Nonnull PropertyMap properties)
properties
.
The new properties will overwrite existing properties with the same key.properties
- the properties to setto query the current state of the properties
Copyright © 2019 Atlassian. All rights reserved.