T
- Type of value represented by the property@Incubating public interface Property<T> extends Provider<T>
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 method ObjectFactory.property(Class)
. There are also several specialized subtypes of this interface that can be created using various other factory methods.
void set(@Nullable T value)
This method can also be used to clear the value of the property, by passing null
as the value.
value
- The value, can be null.void set(Provider<? extends T> provider)
provider
- Provider