Module is.codion.common.model
Package is.codion.common.model.filter
Interface FilterModel.ExcludedItems<T>
- Type Parameters:
T- the item type
- All Superinterfaces:
Observable<Collection<T>>,Observer<Collection<T>>
- Enclosing interface:
FilterModel<T>
The excluded items, the ones not passing the FilterModel.IncludePredicate.
Notifications are delivered once a mutation has completed and the selection has been
restored, and once per mutation, see FilterModel.IncludedItems.
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.reactive.observer.Observer
Observer.Builder<T,B extends Observer.Builder<T, B>> -
Method Summary
Methods inherited from interface is.codion.common.reactive.observer.Observable
changed, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, optionalMethods inherited from interface is.codion.common.reactive.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, observer, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener, when, when
-
Method Details
-
get
Collection<T> get()Returns an unmodifiable snapshot, stable and safe to iterate; it does not reflect subsequent changes to the model.- Specified by:
getin interfaceObservable<T>- Returns:
- the excluded items or an empty collection in case of no excluded items
-
contains
Returns true if the given item is excluded.- Parameters:
item- the item- Returns:
- true if the item is excluded
-
size
int size()- Returns:
- the number of excluded items
-