Package org.gradle.model
Interface ModelSet<T>
- Type Parameters:
- T- the type of model object
- All Superinterfaces:
- 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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Method SummaryModifier and TypeMethodDescriptionvoidApply 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.Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface org.gradle.model.ModelElementgetDisplayName, getName
- 
Method Details- 
createDeclares a new set element, configured by the given action.- Parameters:
- action- the object configuration
 
- 
beforeEachApply the given action to each set element just after it is created.The configuration action is equivalent in terms of lifecycle to Defaultsrule methods.- Parameters:
- configAction- the object configuration
 
- 
afterEachApply 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.- Parameters:
- configAction- the object configuration
 
 
-