SetProperty (Gradle API 5.0)
Date: 2018-11-26

Package org.gradle.api.provider

## Interface SetProperty<T>

- Type Parameters:
    `T` - the type of elements.
  All Superinterfaces:
    `HasMultipleValues<T>`, `Provider<java.util.Set<T>>`

      @Incubating
      public interface SetProperty<T>
      extends Provider<java.util.Set<T>>, HasMultipleValues<T>

  Represents a property whose type is a `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.

  Since:
    4.5

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `SetProperty<T>` | `empty​()` | Sets the value of this property to an empty collection, and replaces any existing value.

    - ### Methods inherited from interface org.gradle.api.provider.HasMultipleValues

      `add, add, addAll, addAll, addAll, finalizeValue, set, set`

    - ### Methods inherited from interface org.gradle.api.provider.Provider

      `flatMap, get, getOrElse, getOrNull, isPresent, map`

- - ### Method Detail

    - #### empty

          SetProperty<T> empty​()

      Sets the value of this property to an empty collection, and replaces any existing value.
      Specified by:
        `empty` in interface `HasMultipleValues<T>`
      Returns:
        this property.