T - the type of elements.HasMultipleValues<T>, Provider<Set<T>>@Incubating public interface SetProperty<T> extends Provider<Set<T>>, HasMultipleValues<T>
Set of elements of type SetProperty. Retains iteration order.
You can create a SetProperty instance using factory method ObjectFactory.setProperty(Class).
Note: This interface is not intended for implementation by build script or plugin authors.
| Modifier and Type | Method | Description |
|---|---|---|
SetProperty<T> |
convention(Iterable<? extends T> elements) |
Specifies the value to use as the convention for this property.
|
SetProperty<T> |
convention(Provider<? extends Iterable<? extends T>> provider) |
Specifies the provider of the value to use as the convention for this property.
|
SetProperty<T> |
empty() |
Sets the value of this property to an empty collection, and replaces any existing value.
|
add, add, addAll, addAll, addAll, finalizeValue, set, setSetProperty<T> empty()
empty in interface HasMultipleValues<T>SetProperty<T> convention(Iterable<? extends T> elements)
convention in interface HasMultipleValues<T>elements - The elementsSetProperty<T> convention(Provider<? extends Iterable<? extends T>> provider)
convention in interface HasMultipleValues<T>provider - The provider of the elements