nl.vpro.domain.media.search.ScoredSearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
package nl.vpro.domain.media.search;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author Michiel Meeuwissen
* @since 5.3
*/
public interface ScoredSearchResult extends SearchResult {
List> getScoredResult();
@Override
default List getResult() {
return getScoredResult()
.stream().map(ScoredResult::getResult)
.collect(Collectors.toList());
}
default Stream> stream() {
return getScoredResult().stream();
}
}