/******************************************************************************************************************* * * Constrains the search to artists who are makers of the given entity. * * @param entity the entity * @return the {@code Finder}, in fluent fashion * ******************************************************************************************************************/ @Nonnull public default MusicArtistFinder makerOf (final @Nonnull Identifiable entity) { return makerOf(entity.getId()); } }
final List<MusicArtist> artists = allArtistsFinder.stream().sorted(BY_DISPLAY_NAME).collect(toList()); final int artistsQueryCount = getLatestQueryCount(); pw.printf(" ALL RECORDS RETRIEVED BY %d QUERIES%n", getLatestQueryCount()); pw.printf("%n%n%nALL ARTISTS (%d):%n%n", allArtistsFinder.count()); final int artistCountQueryCount = getLatestQueryCount(); artists.forEach(artist -> pw.printf(" %s - %s%n", displayNameOf(artist), artist.getSource().orElse(new Id("unknown"))));