voteitem.java

来自「这是本人做的投票系统的源码」· Java 代码 · 共 63 行

JAVA
63
字号
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 + =
减小字号Ctrl + -
显示快捷键?