⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userinfo.java

📁 这是一个学校老师和学生的管理系统,程序比较简单,但是几乎所有功能都可以实现,如果想要用,只要再添加一些东西就可以了.
💻 JAVA
字号:
/**
 *******************************************************************************
 * User.java
 *
 * (c) Copyright 2008 Hewlett-Packard Development Company, L.P.
 *
 *<Program Content>
 *  System Name : Students Management System
 *<Summarize>
 *  The file includes a class.The class has all properties of an user.
 *<Update Record>
 *  2009-4-17    1.00    zhangliy
 *******************************************************************************
 */
package com.hp.eds.zhangliyuan.stuMan.entity;

/**
 * The class has all properties of an user.
 * 
 * @author zhangliy
 * @version 1.0
 */
public class UserInfo {
	private String stuId;

	private String stuName;

	private String password;

	private String hometown;
	
	private String department;

	private String sex;
	
	private int mark;

	private String telephone;

	private String email;

	/**
	 * Constructor
	 * 
	 */
	public UserInfo() {
		super();
	}

	/**
	 * judge whether two objects of UserInfo is equal
	 * 
	 * @param user
	 *            -the object of UserInfo
	 * @return boolean(true:the two objects are equal;false:they are not equal)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object user) {
		UserInfo userChan = (UserInfo) user;

		if (!this.getPassword().equals(userChan.getPassword())) {
			// the password is not equal
			return false;
		}
		if (!this.getTelephone().equals(userChan.getTelephone())) {
			// the telephone number is not equal
			return false;
		}
		if (this.getEmail().equals(userChan.getEmail())) {
			// the email is not equal
			return false;
		}
		// they are equal
		return true;

	}

	/**
	 * email of get
	 * 
	 * @return email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * email of set
	 * 
	 * @param email
	 *            set {bare_field_name}
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * hometown of get
	 * 
	 * @return hometown
	 */
	public String getHometown() {
		return hometown;
	}

	/**
	 * hometown of set
	 * 
	 * @param hometown
	 *            set {bare_field_name}
	 */
	public void setHometown(String hometown) {
		this.hometown = hometown;
	}

	/**
	 * password of get
	 * 
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * password of set
	 * 
	 * @param password
	 *            set {bare_field_name}
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * sex of get
	 * 
	 * @return sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * sex of set
	 * 
	 * @param sex
	 *            set {bare_field_name}
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * stuId of get
	 * 
	 * @return stuId
	 */
	public String getStuId() {
		return stuId;
	}

	/**
	 * stuId of set
	 * 
	 * @param stuId
	 *            set {bare_field_name}
	 */
	public void setStuId(String stuId) {
		this.stuId = stuId;
	}

	/**
	 * stuName of get
	 * 
	 * @return stuName
	 */
	public String getStuName() {
		return stuName;
	}

	/**
	 * stuName of set
	 * 
	 * @param stuName
	 *            set {bare_field_name}
	 */
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	/**
	 * telephone of get
	 * 
	 * @return telephone
	 */
	public String getTelephone() {
		return telephone;
	}

	/**
	 * telephone of set
	 * 
	 * @param telephone
	 *            set {bare_field_name}
	 */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	/**
	 * department of get
	 *
	 * @return department
	 */
	public String getDepartment() {
		return department;
	}

	/**
	 * department of set
	 *
	 * @param department set {bare_field_name}
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

	/**
	 * mark of get
	 *
	 * @return mark
	 */
	public int getMark() {
		return mark;
	}

	/**
	 * mark of set
	 *
	 * @param mark set {bare_field_name}
	 */
	public void setMark(int mark) {
		this.mark = mark;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -