append

abstract fun append(element: T)(source)

Adds an element to the property value.

When invoked on a property with no value, this method first sets the value of the property to its current convention value, if set, or an empty collection.

Since

8.7

Parameters

element

The element


abstract fun append(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.

When invoked on a property with no value, this method first sets the value of the property to its current convention value, if set, or an empty collection.

Even if the given provider has no value, after this method is invoked, the actual value of this property is guaranteed to be present.

Since

8.7

Parameters

provider

The provider of an element