class SearchBarComponent {

    void updateViewNumber() {

        final int currentResultNumber = editorSearchIndex().map(EditorSearchIndex::getCurrentResultNumber).orElse(0);
        final int totalOfResultsNumber = editorSearchIndex().map(EditorSearchIndex::getTotalOfResultsNumber).orElse(0);

        view.setCurrentResultNumber(currentResultNumber);
        view.setTotalOfResultsNumber(totalOfResultsNumber);
    }

    @Inject public  SearchBarComponent(final View view);

}