Module is.codion.common.model
Package is.codion.common.model.filter
Interface FilterModel.FilteredItems<T>
- Type Parameters:
T- the item type
- All Superinterfaces:
Observable<Collection<T>>,Observer<Collection<T>>
- Enclosing interface:
FilterModel<T>
-
Method Summary
Methods inherited from interface is.codion.common.reactive.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
get
@NonNull Collection<T> get()- Specified by:
getin interfaceObservable<T>- Returns:
- the filtered items or an empty collection in case of no filtered items
-
contains
Returns true if the given item is filtered.- Parameters:
item- the item- Returns:
- true if the item is filtered
-
size
int size()- Returns:
- the number of filtered items
-