📄 voteitem.java
字号:
package cn.hxex.vote.model;
/**
* 投票选项类,表示投票中的一个选项
*
* @author galaxy
*
*/
public class VoteItem
{
/**
* 选项的唯一标识
*/
private String id;
/**
* 选项的题目
*/
private String title;
/**
* 选项的数目
*/
private Integer votenum;
/**
* 所属投票
*/
private Vote vote;
/**
* @return Returns the votenum.
*/
public Integer getVotenum()
{
return votenum;
}
/**
* @param votenum The votenum to set.
*/
public void setVotenum(Integer count)
{
this.votenum = count;
}
/**
* @return Returns the id.
*/
public String getId()
{
return id;
}
/**
* @param id The id to set.
*/
public void setId(String id)
{
this.id = id;
}
/**
* @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;
}
/**
* 增加投票方法
*/
public void increaseVotenum()
{
int num = getVotenum().intValue() + 1;
setVotenum( Integer.valueOf( num ) );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -