分组实体类:
public class Article {
/**
* 文章名称
*/
private String name;
/**
* 收藏次数
*/
private Integer collectionNumber;
/**
* 点赞数
*/
private Integer giveThumbs;
public Article(String name, Integer collectionNumber, Integer giveThumbs) {
this.name = name;
this.collectionNumber = collectionNumber;
this.giveThumbs = giveThumbs;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getCollectionNumber() {
return collectionNumber;
}
public void setCollectionNumber(Integer collectionNumber) {
this.collectionNumber = collectionNumber;
}
public Integer getGiveThumbs() {
return giveThumbs;
}
public void setGiveThumbs(Integer giveThumbs) {
this.giveThumbs = giveThumbs;
}
@Override
public String toString() {
return "Article{" +