set

abstract fun set(@Nullable elements: Iterable<out T>)(source)

Sets the value of the property to the elements of the given iterable, and replaces any existing value. This property will query the elements of the iterable each time the value of this property is queried.

This method can also be used to discard the value of the property, by passing null as the value. The convention for this property, if any, will be used to provide the value instead.

Parameters

elements

The elements, can be null.


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

Sets the property to have the same value of the given provider, and replaces any existing value. This property will track the value of the provider and query its value each time the value of this property is queried. When the provider has no value, this property will also have no value.

Parameters

provider

Provider of the elements.