addProperties
Returns a new Feature with multiple properties added.
This is a convenience vararg overload of addProperties for adding properties inline. If any property name already exists, it will be replaced.
Example:
val updated = feature.addProperties(
intProperty("maxRetries") { value = 3 },
stringProperty("environment") { value = "production" },
booleanProperty("cacheEnabled") { value = true }
)Content copied to clipboard
Return
a new Feature with the properties added
Parameters
properties
the properties to add
See also
for the Collection version
Returns a new Feature with multiple properties added.
Properties are added by name - if a property with the same name already exists, it will be replaced. This maintains immutability by returning a new instance.
Example:
val properties = listOf(
intProperty("timeout") { value = 5000 },
stringProperty("region") { value = "us-east-1" }
)
val updated = feature.addProperties(properties)Content copied to clipboard
Return
a new Feature with the properties added
Parameters
properties
the collection of properties to add