[JAVA-13290] Update record name

This commit is contained in:
Haroon Khan
2022-07-14 10:50:07 +01:00
parent 6dc315fe18
commit 46e6b55c42
2 changed files with 7 additions and 7 deletions

View File

@@ -4,15 +4,15 @@ import java.util.IntSummaryStatistics;
public class BlogPost {
private String title;
private String author;
private BlogPostType type;
private int likes;
record AuthPostTypesLikes(String author, BlogPostType type, int likes) {};
record PostcountTitlesLikesStats(long postCount, String titles, IntSummaryStatistics likesStats){};
record PostCountTitlesLikesStats(long postCount, String titles, IntSummaryStatistics likesStats){};
record TitlesBoundedSumOfLikes(String titles, int boundedSumOfLikes) {};
public BlogPost(String title, String author, BlogPostType type, int likes) {
this.title = title;
this.author = author;