appendAll

abstract fun appendAll(elements: Array<T>)(source)

Adds zero or more elements 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

elements

The elements to add


abstract fun appendAll(elements: Iterable<out T>)(source)

Adds zero or more elements to the property value.

The given iterable 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.

Since

8.7

Parameters

elements

The elements to add.


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

Adds zero or more elements 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

Provider of elements