Code example for ContentValues

Methods: containsKey

0
    } 
 
    @Override 
    public boolean containsSearchableColumns(ContentValues values) {
        return values.containsKey(Organization.COMPANY)
                || values.containsKey(Organization.DEPARTMENT)
                || values.containsKey(Organization.JOB_DESCRIPTION)
                || values.containsKey(Organization.OFFICE_LOCATION)
                || values.containsKey(Organization.PHONETIC_NAME)
                || values.containsKey(Organization.SYMBOL)
                || values.containsKey(Organization.TITLE);
    } 
 
    @Override 
    public void appendSearchableData(IndexBuilder builder) {
        builder.appendContentFromColumn(Organization.TITLE);
        builder.appendContentFromColumn(Organization.COMPANY, IndexBuilder.SEPARATOR_COMMA);
        builder.appendContentFromColumn(Organization.PHONETIC_NAME,
                IndexBuilder.SEPARATOR_PARENTHESES); 
        builder.appendContentFromColumn(Organization.SYMBOL, IndexBuilder.SEPARATOR_PARENTHESES);
        builder.appendContentFromColumn(Organization.DEPARTMENT, IndexBuilder.SEPARATOR_SLASH);