ModelSet

A set of managed model objects.

org.gradle.model.Managed types may declare managed set properties. Managed sets can only contain managed types.

Managed set objects cannot be mutated via the mutative methods of the java.util.Set interface (e.g. add, clear). To add elements to the set, the create method can be used.

Functions

Link copied to clipboard
abstract fun add(p: E): Boolean
Link copied to clipboard
abstract fun addAll(p: Collection<out E>): Boolean
Link copied to clipboard
abstract fun afterEach(configAction: Action<in T>)
Apply the given action to each set element just before it is considered to be realised.
Link copied to clipboard
abstract fun beforeEach(configAction: Action<in T>)
Apply the given action to each set element just after it is created.
Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun contains(p: Any): Boolean
Link copied to clipboard
abstract fun containsAll(p: Collection<out Any>): Boolean
Link copied to clipboard
open fun <E> copyOf(coll: Collection<out E>): Set<E>
Link copied to clipboard
abstract fun create(action: Action<in T>)
Declares a new set element, configured by the given action.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract fun iterator(): Iterator<T>
abstract fun iterator(): Iterator<E>
Link copied to clipboard
open fun <E> of(): Set<E>
Link copied to clipboard
open fun parallelStream(): Stream<E>
Link copied to clipboard
abstract fun remove(p: Any): Boolean
Link copied to clipboard
abstract fun removeAll(p: Collection<out Any>): Boolean
Link copied to clipboard
open fun removeIf(filter: Predicate<in E>): Boolean
Link copied to clipboard
abstract fun retainAll(p: Collection<out Any>): Boolean
Link copied to clipboard
abstract fun size(): Int
Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<E>
Link copied to clipboard
abstract fun toArray(): Array<Any>
abstract fun <T> toArray(p: Array<T>): Array<T>