Package 

Class DefaultUserQueryFilter

  • All Implemented Interfaces:
    io.getstream.chat.android.ui.common.feature.messages.composer.query.filter.QueryFilter

    
    public final class DefaultUserQueryFilter
     implements QueryFilter<User>
                        

    Default QueryFilter for User objects used in mention suggestions.

    Matches by whitespace-tokenizing the query and the user's name (or id when blank): every word except the last must equal at least one name word, and the last word must be a prefix of at least one name word. The same name word may satisfy multiple query words. Results are sorted alphabetically by normalized name. Normalization applies lowercasing, diacritics removal, and optional transliteration.

    • Method Summary

      Modifier and Type Method Description
      List<User> filter(List<User> items, String query) Filters the given items based on the query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultUserQueryFilter

        DefaultUserQueryFilter(StreamTransliterator transliterator)
        Parameters:
        transliterator - The transliterator to use for normalizing strings.