addAll

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

Adds zero or more elements to the property value.

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

Since

4.10

Parameters

elements

The elements to add


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

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

Since

4.10

Parameters

elements

The elements to add.


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

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

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

Parameters

provider

Provider of elements