public class DefaultNamedDomainObjectList<T> extends DefaultNamedDomainObjectCollection<T> implements NamedDomainObjectList<T>
| Constructor and Description |
|---|
DefaultNamedDomainObjectList(Class<T> type,
CollectionEventRegister<T> collectionEventRegister,
Instantiator instantiator,
Namer<? super T> namer) |
DefaultNamedDomainObjectList(Class<T> type,
Instantiator instantiator,
Namer<? super T> namer) |
DefaultNamedDomainObjectList(DefaultNamedDomainObjectList<? super T> objects,
CollectionFilter<T> filter,
Instantiator instantiator,
Namer<? super T> namer) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> c) |
protected <S extends T> |
filteredStore(CollectionFilter<S> filter) |
List<T> |
findAll(Closure cl)
Returns a collection which contains the objects in this collection which meet the given closure specification.
|
T |
get(int index) |
protected List<T> |
getStore() |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
NamedDomainObjectList<T> |
matching(Closure spec)
Returns a collection which contains the objects in this collection which meet the given closure specification.
|
NamedDomainObjectList<T> |
matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
T |
remove(int index) |
T |
set(int index,
T element) |
List<T> |
subList(int fromIndex,
int toIndex) |
<S extends T> |
withType(Class<S> type)
Returns a collection containing the objects in this collection of the given type.
|
add, addRule, addRule, assertCanAdd, assertCanAdd, createNotFoundException, filtered, findByName, findByNameWithoutRules, getAsDynamicObject, getAsMap, getAt, getByName, getByName, getConvention, getDisplayName, getElementsAsDynamicObject, getExtensions, getInstantiator, getNamer, getRules, getTypeDisplayName, handleAttemptToAddItemWithNonUniqueName, hasWithName, removeByNameaddAll, all, all, assertMutable, beforeChange, clear, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getType, isEmpty, iterator, remove, removeAll, retainAll, size, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypetoArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypepublic DefaultNamedDomainObjectList(DefaultNamedDomainObjectList<? super T> objects, CollectionFilter<T> filter, Instantiator instantiator, Namer<? super T> namer)
public DefaultNamedDomainObjectList(Class<T> type, CollectionEventRegister<T> collectionEventRegister, Instantiator instantiator, Namer<? super T> namer)
public DefaultNamedDomainObjectList(Class<T> type, Instantiator instantiator, Namer<? super T> namer)
public boolean addAll(int index,
Collection<? extends T> c)
protected List<T> getStore()
getStore in class DefaultDomainObjectCollection<T>public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>protected <S extends T> Collection<S> filteredStore(CollectionFilter<S> filter)
filteredStore in class DefaultDomainObjectCollection<T>public NamedDomainObjectList<T> matching(Closure spec)
DomainObjectCollectionmatching in interface DomainObjectCollection<T>matching in interface NamedDomainObjectCollection<T>matching in interface NamedDomainObjectList<T>matching in class DefaultNamedDomainObjectCollection<T>spec - The specification to use. The closure gets a collection element as an argument.public NamedDomainObjectList<T> matching(Spec<? super T> spec)
DomainObjectCollectionmatching in interface DomainObjectCollection<T>matching in interface NamedDomainObjectCollection<T>matching in interface NamedDomainObjectList<T>matching in class DefaultNamedDomainObjectCollection<T>spec - The specification to use.public <S extends T> NamedDomainObjectList<S> withType(Class<S> type)
DomainObjectCollectionwithType in interface DomainObjectCollection<T>withType in interface NamedDomainObjectCollection<T>withType in interface NamedDomainObjectList<T>withType in class DefaultNamedDomainObjectCollection<T>type - The type of objects to find.public List<T> findAll(Closure cl)
DomainObjectCollectionfindAll in interface DomainObjectCollection<T>findAll in interface NamedDomainObjectList<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