add

abstract fun add(element: T)(source)

Adds an element to the property value.

Contrary to append, if this property has no value, this operation has no effect on the value of this property.

Parameters

element

The element

See also

for a more convenient


abstract fun add(provider: Provider<out T>)(source)

Adds an element to the property value.

The given provider will be queried when the value of this property is queried.

Contrary to append, if this property has no value, this operation has no effect on the value of this property.

Also contrary to append, this property will have no value when the given provider has no value.

Parameters

provider

The provider of an element