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, Set.clear). To add elements to the set, the create(Action) method can be used.
- the type of model objectType | Name and description |
---|---|
void |
afterEach(Action<? super T> configAction) Apply the given action to each set element just before it is considered to be realised. |
void |
beforeEach(Action<? super T> configAction) Apply the given action to each set element just after it is created. |
void |
create(Action<? super T> action) Declares a new set element, configured by the given action. |
Methods inherited from class | Name |
---|---|
interface ModelElement |
getDisplayName, getName |
interface Set |
add, equals, hashCode, clear, contains, isEmpty, size, toArray, toArray, addAll, iterator, remove, containsAll, removeAll, retainAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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 Finalize rule methods.
configAction
- the object configurationApply the given action to each set element just after it is created.
The configuration action is equivalent in terms of lifecycle to Defaults rule methods.
configAction
- the object configurationDeclares a new set element, configured by the given action.
action
- the object configuration