trait Container
A container.
| Type | Name and description |
|---|---|
boolean |
add(T item)Add an item. |
void |
addAll(java.util.Collection<T> items)Add items. |
T |
create(java.lang.String name, groovy.lang.Closure closure)Create an item and add it. |
java.lang.Class<T> |
getContainerElementType()Type of the container element. |
Add an item.
The item must have name property.
If this map already contains an item with same name, it will be overwritten.
Add items.
Each item must have name property.
If this map already contains an item with same name, it will be overwritten.
Create an item and add it. If this map already contains an item with same name, it will be overwritten.
Type of the container element.