Interface SearchResultConverter

All Known Implementing Classes:
DefaultSearchResultConverter

public interface SearchResultConverter
Service to convert SearchResult with results of type Model to results of type Data
  • Method Details

    • convert

      <S extends ItemModel, T> SearchResult<T> convert(SearchResult<S> modelSearchResult, Function<S,T> convertFunction)
      Convert SearchResult of type Model to Data
      Parameters:
      modelSearchResult - the search result containing model objects to be converted
      convertFunction - the function used to convert the model object into the data object
      Returns:
      the search result containing data objects; empty result list if modelSearchResult is null; never null