Interface FilteredComboBoxModel.Finder<T,​V>

    • Method Detail

      • value

        V value​(T item)
        Returns the value from the given item to use when searching
        Parameters:
        item - the item, never null
        Returns:
        the value associated with the given item
      • createPredicate

        Predicate<T> createPredicate​(V value)
        Returns the Predicate to use when searching for the given value
        Parameters:
        value - the value to search for, never null
        Returns:
        a Predicate based on the given value
      • findItem

        default T findItem​(Collection<T> items,
                           V value)
        Returns the first item in the given collection containing the given value. Only called for non-null values.
        Parameters:
        items - the items to search
        value - the value to search for, never null
        Returns:
        the first item in the given list containing the given value, null if none is found.