T - the type of elements.@Incubating public interface ListProperty<T> extends Property<List<T>>
List of elements of type T.
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.listProperty(Class).
| Modifier and Type | Method and Description |
|---|---|
void |
add(Provider<? extends T> provider)
Adds an element to the property given by the provider without evaluating existing providers already present.
|
void |
add(T element)
Adds an element to the property without evaluating existing providers already present.
|
void |
addAll(Provider<? extends Iterable<T>> provider)
Adds a collection of elements to the property given by the provider without evaluating existing providers
|
void add(T element)
element - The elementNullPointerException - if the specified element is nullvoid add(Provider<? extends T> provider)
The given provider will be queried when it's time to get the value of the property. This property will be unchanged if its value is not defined.
provider - Providervoid addAll(Provider<? extends Iterable<T>> provider)
The given provider will be queried when it's time to get the value of the property. This property will be unchanged if its value is not defined.
provider - Provider of elements