Interface FilterModel.ExcludedItems<T>

Type Parameters:
T - the item type
All Superinterfaces:
Observable<Collection<T>>, Observer<Collection<T>>
Enclosing interface:
FilterModel<T>

public static interface FilterModel.ExcludedItems<T> extends Observable<Collection<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.

  • 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:
      get in interface Observable<T>
      Returns:
      the excluded items or an empty collection in case of no excluded items
    • contains

      boolean contains(T item)
      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