Package org.gradle.api.provider
Interface ListProperty<T>
- Type Parameters:
T
- the type of elements.
Represents a property whose type is a
List
of elements of type ListProperty
.
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)
.
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an element to the property given by the provider without evaluating existing providers already present.void
Adds an element to the property without evaluating existing providers already present.void
Adds a collection of elements to the property given by the provider without evaluating existing providers
-
Method Details
-
add
Adds an element to the property without evaluating existing providers already present.- Parameters:
element
- The element- Throws:
NullPointerException
- if the specified element is null- Since:
- 4.4
-
add
Adds an element to the property given by the provider without evaluating existing providers already present.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.
- Parameters:
provider
- Provider- Since:
- 4.4
-
addAll
Adds a collection of elements to the property given by the provider without evaluating existing providersThe 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.
- Parameters:
provider
- Provider of elements- Since:
- 4.4
-