|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of domain objects in this set.public interface DomainObjectSet<T>
A DomainObjectSet
is a specialisation of DomainObjectCollection
that guarantees Set
semantics.
Method Summary | ||
---|---|---|
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. |
|
|
withType(Class<S> type)
Returns a collection containing the objects in this collection of the given type. |
Methods inherited from interface org.gradle.api.DomainObjectCollection |
---|
all, all, allObjects, allObjects, findAll, getAll, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
<S extends T> DomainObjectSet<S> withType(Class<S> type)
withType
in interface DomainObjectCollection<T>
type
- The type of objects to find.
DomainObjectSet<T> matching(Spec<? super T> spec)
matching
in interface DomainObjectCollection<T>
spec
- The specification to use.
DomainObjectSet<T> matching(Closure spec)
matching
in interface DomainObjectCollection<T>
spec
- The specification to use. The closure gets a collection element as an argument.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |