T - The type of domain objects in the component collections of this collection.public class CompositeDomainObjectSet<T> extends DefaultDomainObjectSet<T>
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeDomainObjectSet.ItemIsUniqueInCompositeSpec |
class |
CompositeDomainObjectSet.ItemNotInCompositeSpec |
| Constructor and Description |
|---|
CompositeDomainObjectSet(Class<T> type) |
CompositeDomainObjectSet(Class<T> type,
DomainObjectCollection<? extends T>... collections) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollection(DomainObjectCollection<? extends T> collection) |
void |
all(Action<? super T> action)
Executes the given action against all objects in this collection, and any objects subsequently added to this
collection.
|
protected org.apache.commons.collections.collection.CompositeCollection |
getStore() |
Iterator<T> |
iterator() |
void |
removeCollection(DomainObjectCollection<? extends T> collection) |
int |
size() |
Action<? super T> |
whenObjectAdded(Action<? super T> action)
Adds an
Action to be executed when an object is added to this collection. |
Action<? super T> |
whenObjectRemoved(Action<? super T> action)
Adds an
Action to be executed when an object is removed from this collection. |
filtered, filteredStore, findAll, matching, matching, withTypeadd, addAll, all, assertMutable, beforeChange, clear, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getType, isEmpty, remove, removeAll, retainAll, whenObjectAdded, whenObjectRemoved, withType, withTypetoArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitall, whenObjectAdded, whenObjectRemoved, withType, withTypepublic CompositeDomainObjectSet(Class<T> type, DomainObjectCollection<? extends T>... collections)
protected org.apache.commons.collections.collection.CompositeCollection getStore()
getStore in class DefaultDomainObjectCollection<T>public Action<? super T> whenObjectAdded(Action<? super T> action)
DomainObjectCollectionAction to be executed when an object is added to this collection.whenObjectAdded in interface DomainObjectCollection<T>whenObjectAdded in class DefaultDomainObjectCollection<T>action - The action to be executedpublic Action<? super T> whenObjectRemoved(Action<? super T> action)
DomainObjectCollectionAction to be executed when an object is removed from this collection.whenObjectRemoved in interface DomainObjectCollection<T>whenObjectRemoved in class DefaultDomainObjectCollection<T>action - The action to be executedpublic void addCollection(DomainObjectCollection<? extends T> collection)
public void removeCollection(DomainObjectCollection<? extends T> collection)
public int size()
size in interface Collection<T>size in interface Set<T>size in class DefaultDomainObjectCollection<T>public void all(Action<? super T> action)
DomainObjectCollectionall in interface DomainObjectCollection<T>all in class DefaultDomainObjectCollection<T>action - The action to be executedCopyright © 2013. All rights reserved