📄 voteitem.java
字号:
package cn.hxex.vote.model;
public class VoteItem {
private String id;
private String title;
private Integer voteNum;
private Vote vote;
/**
* @return Returns the title.
*/
public String getTitle() {
return title;
}
/**
* @param title The title to set.
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return Returns the vote.
*/
public Vote getVote() {
return vote;
}
/**
* @param vote The vote to set.
*/
public void setVote(Vote vote) {
this.vote = vote;
}
/**
* @return Returns the voteNum.
*/
public Integer getVoteNum() {
return voteNum;
}
/**
* @param voteNum The voteNum to set.
*/
public void setVoteNum(Integer voteNum) {
this.voteNum = voteNum;
}
/**
* @return Returns the id.
*/
public String getId() {
return id;
}
/**
* @param id The id to set.
*/
public void setId(String id) {
this.id = id;
}
/*增加投票方法*/
public void increaseVotenum() {
int num = this.getVoteNum().intValue() + 1;
this.setVoteNum(Integer.valueOf(num));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -