Package org.gradle.model
Schnittstelle ModelSet<T>
- Typparameter:
T- the type of model object
- Alle Superschnittstellen:
Collection<T>,Iterable<T>,ModelElement,Named,Set<T>
A set of managed model objects.
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 Set interface (e.g. Set.add(Object), Set.clear()).
To add elements to the set, the create(Action) method can be used.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named
Named.Namer -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidApply the given action to each set element just before it is considered to be realised.voidbeforeEach(Action<? super T> configAction) Apply the given action to each set element just after it is created.voidDeclares a new set element, configured by the given action.Von Schnittstelle geerbte Methoden java.util.Collection
parallelStream, removeIf, stream, toArrayVon Schnittstelle geerbte Methoden org.gradle.model.ModelElement
getDisplayName, getName
-
Methodendetails
-
create
Declares a new set element, configured by the given action.- Parameter:
action- the object configuration
-
beforeEach
Apply the given action to each set element just after it is created.The configuration action is equivalent in terms of lifecycle to
Defaultsrule methods.- Parameter:
configAction- the object configuration
-
afterEach
Apply the given action to each set element just before it is considered to be realised.The configuration action is equivalent in terms of lifecycle to
Finalizerule methods.- Parameter:
configAction- the object configuration
-