T
- The type of domain objects in this set.public interface DomainObjectSet<T> extends DomainObjectCollection<T>, Set<T>
A DomainObjectSet
is a specialisation of DomainObjectCollection
that guarantees Set
semantics.
修飾子とタイプ | メソッドと説明 |
---|---|
Set<T> |
findAll(Closure spec)
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.
|
all, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
<S extends T> DomainObjectSet<S> withType(Class<S> type)
withType
インタフェース内 DomainObjectCollection<T>
type
- The type of objects to find.DomainObjectSet<T> matching(Spec<? super T> spec)
matching
インタフェース内 DomainObjectCollection<T>
spec
- The specification to use.DomainObjectSet<T> matching(Closure spec)
matching
インタフェース内 DomainObjectCollection<T>
spec
- The specification to use. The closure gets a collection element as an argument.Set<T> findAll(Closure spec)
findAll
インタフェース内 DomainObjectCollection<T>
spec
- The specification to use. The closure gets a collection element as an argument.