@Incubating interface PropertyState<T : Any> : Property<T>
A Provider
representation for capturing the state of a property. The value can be provided by using the method #set(Object)
or #set(Provider)
.
Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created through the factory methods org.gradle.api.Project#property(java.lang.Class)
or org.gradle.api.provider.ProviderFactory#property(java.lang.Class)
.
- Type of value represented by property state
Since
4.0
abstract fun set(value: T): Unit
Sets the value of the property the given value. This method can also be used to clear the value of the property, by passing abstract fun set(provider: Provider<out T>): Unit
Sets the property to have the same value of the given provider. This property will track the value of the provider and query its value each time the value of the property is queried. When the provider has no value, this property will also have no value. |
operator fun <T> PropertyState<T>.
Property delegate for PropertyState instances. |
|
operator fun <T> PropertyState<T>.
Property delegate for PropertyState instances. |
interface DirectoryVar : DirectoryProperty, PropertyState<Directory>
Represents some configurable directory location, whose value is mutable and is not necessarily currently known until later. Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created using the |
|
interface RegularFileVar : RegularFileProperty, PropertyState<RegularFile>
Represents some configurable regular file location, whose value is mutable and not necessarily currently known until later. Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created using the |