/******************************************************************************************************************* * * Constrains the search to performances of the given track. * * @param track the track * @return the {@code Finder}, in fluent fashion * ******************************************************************************************************************/ @Nonnull public default PerformanceFinder ofTrack (final @Nonnull Track track) { return ofTrack(track.getId()); }
@Override @Nonnull public Optional<Performance> getPerformance() { return performance.get(() -> _findPerformances().ofTrack(this).optionalFirstResult()); }