voidafterEach(Action<? super T> configAction)
Applies the given action to each item in the collection, as each item is required.
<S> voidafterEach(Class<S> type,
Action<? super S> configAction)
Applies the given action to each item of the given type in the collection, as each item is required.
voidall(Action<? super T> configAction)
Applies the given action to each item in the collection, as each item is required.
voidbeforeEach(Action<? super T> configAction)
Applies the given action to each item in this collection, as each item is required.
<S> voidbeforeEach(Class<S> type,
Action<? super S> configAction)
Applies the given action to each item of the given type in this collection, as each item is required.
booleancontainsKey(Object name)
Returns true if this collection contains an item with the given name.
booleancontainsValue(Object item)
Returns true if this collection contains the given item.
voidcreate(String name)
Defines an item with the given name and type T.
voidcreate(String name,
Action<? super T> configAction)
Defines an item with the given name and type T.
<S extends T>
voidcreate(String name,
Class<S> type)
Defines an item with the given name and type.
<S extends T>
voidcreate(String name,
Class<S> type,
Action<? super S> configAction)
Defines an item with the given name and type.
Tget(Object name)
Returns the item with the given name, if any.
Tget(String name)
Returns the item with the given name, if any.
booleanisEmpty()
Returns true if this collection contains no items.
Set<String>keySet()
Returns the names of the items in this collection.
voidnamed(String name,
Action<? super T> configAction)
Applies the given action to the given item, when the item is required.
voidnamed(String name,
Class<? extends RuleSource> ruleSource)
Applies the given rule source class to the given item, when the item is required.
voidput(String name,
T instance)
Add an unmanaged instance to the ModelMap.
intsize()
Returns the number of items in this collection.
Collection<T>values()
Returns the items in this collection.
<S> ModelMap<S>withType(Class<S> type)
Returns a collection containing the items from this collection which are of the specified type.
<S> voidwithType(Class<S> type,
Action<? super S> configAction)
Applies the given action to each item of the given type in the collection, as each item is required.
<S> voidwithType(Class<S> type,
Class<? extends RuleSource> rules)
Applies the given rules to all items of the collection of the given type.