public class DefaultDomainObjectSet<T> extends DefaultDomainObjectCollection<T> implements DomainObjectSet<T>
| Modifier | Constructor and Description |
|---|---|
|
DefaultDomainObjectSet(Class<? extends T> type) |
|
DefaultDomainObjectSet(Class<? extends T> type,
Collection<T> store) |
protected |
DefaultDomainObjectSet(Class<? extends T> type,
Collection<T> store,
CollectionEventRegister<T> eventRegister) |
protected |
DefaultDomainObjectSet(DefaultDomainObjectSet<? super T> store,
CollectionFilter<T> filter) |
| Modifier and Type | Method and Description |
|---|---|
protected <S extends T> |
filtered(CollectionFilter<S> filter) |
protected <S extends T> |
filteredStore(CollectionFilter<S> filter) |
Set<T> |
findAll(Closure cl)
Returns a collection which contains the objects in this collection which meet the given closure specification.
|
DomainObjectSet<T> |
matching(Closure spec)
Returns a collection which contains the objects in this collection which meet the given closure specification.
|
DomainObjectSet<T> |
matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
<S extends T> |
withType(Class<S> type)
Returns a collection containing the objects in this collection of the given type.
|
add, addAll, all, all, assertMutable, beforeChange, clear, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getStore, getType, isEmpty, iterator, remove, removeAll, retainAll, size, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypetoArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypepublic DefaultDomainObjectSet(Class<? extends T> type, Collection<T> store)
protected DefaultDomainObjectSet(DefaultDomainObjectSet<? super T> store, CollectionFilter<T> filter)
protected DefaultDomainObjectSet(Class<? extends T> type, Collection<T> store, CollectionEventRegister<T> eventRegister)
protected <S extends T> DefaultDomainObjectSet<S> filtered(CollectionFilter<S> filter)
filtered in class DefaultDomainObjectCollection<T>protected <S extends T> Set<S> filteredStore(CollectionFilter<S> filter)
filteredStore in class DefaultDomainObjectCollection<T>public <S extends T> DomainObjectSet<S> withType(Class<S> type)
DomainObjectCollectionwithType in interface DomainObjectCollection<T>withType in interface DomainObjectSet<T>withType in class DefaultDomainObjectCollection<T>type - The type of objects to find.public DomainObjectSet<T> matching(Spec<? super T> spec)
DomainObjectCollectionmatching in interface DomainObjectCollection<T>matching in interface DomainObjectSet<T>matching in class DefaultDomainObjectCollection<T>spec - The specification to use.public DomainObjectSet<T> matching(Closure spec)
DomainObjectCollectionmatching in interface DomainObjectCollection<T>matching in interface DomainObjectSet<T>matching in class DefaultDomainObjectCollection<T>spec - The specification to use. The closure gets a collection element as an argument.public Set<T> findAll(Closure cl)
DomainObjectCollectionfindAll in interface DomainObjectCollection<T>findAll in interface DomainObjectSet<T>findAll in class DefaultDomainObjectCollection<T>cl - The specification to use. The closure gets a collection element as an argument.Copyright © 2013. All rights reserved