Interface HasMultipleValues<T>
- Type Parameters:
T- the type of elements.
- All Known Subinterfaces:
ListProperty<T>, SetProperty<T>
Represents a property whose value can be set using multiple elements of type
T, such as a collection property.
Note: This interface is not intended for implementation by build script or plugin authors. You can use the factory methods on ObjectFactory to create instances of this interface.
- Since:
- 4.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an element to the property value.voidAdds an element to the property value.voidAdds zero or more elements to the property value.voidSets the value of the property the given value.voidSets the property to have the same value of the given provider.
-
Method Details
-
set
-
set
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.- Parameters:
provider- Provider
-
add
Adds an element to the property value.- Parameters:
element- The element- Throws:
NullPointerException- if the specified element is null
-
add
-
addAll
-