public class DefaultNamedDomainObjectList<T> extends DefaultNamedDomainObjectCollection<T> implements NamedDomainObjectList<T>
| Constructor and Description |
|---|
DefaultNamedDomainObjectList(java.lang.Class<T> type,
CollectionEventRegister<T> collectionEventRegister,
Instantiator instantiator,
Namer<? super T> namer) |
DefaultNamedDomainObjectList(java.lang.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,
java.util.Collection<? extends T> c) |
protected <S extends T> |
filteredStore(CollectionFilter<S> filter) |
java.util.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 java.util.List<T> |
getStore() |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator() |
java.util.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) |
java.util.List<T> |
subList(int fromIndex,
int toIndex) |
<S extends T> |
withType(java.lang.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, withTypeclone, 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(java.lang.Class<T> type, CollectionEventRegister<T> collectionEventRegister, Instantiator instantiator, Namer<? super T> namer)
public DefaultNamedDomainObjectList(java.lang.Class<T> type, Instantiator instantiator, Namer<? super T> namer)
public boolean addAll(int index,
java.util.Collection<? extends T> c)
addAll in interface java.util.List<T>protected java.util.List<T> getStore()
getStore in class DefaultDomainObjectCollection<T>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>public java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T>public java.util.List<T> subList(int fromIndex, int toIndex)
subList in interface java.util.List<T>protected <S extends T> java.util.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(java.lang.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 java.util.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