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

📄 userinfovo.java

📁 这是本人在学习T4SH框架时
💻 JAVA
字号:
package com.zxx.tsh.view.userinfo.vo;

import java.util.Date;

import com.zxx.tsh.model.userinfo.pojo.UserType;

public class UserInfoVO {
	 private String userId;
     private UserType userType;
     private String userName;
     private String userPwd;
     private String userRealName;
     private String userSex;
     private Date userCreatedDate;
     
	public Date getUserCreatedDate() {
		return userCreatedDate;
	}
	
	public void setUserCreatedDate(Date userCreatedDate) {
		this.userCreatedDate = userCreatedDate;
	}
	
	public String getUserId() {
		return userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getUserPwd() {
		return userPwd;
	}
	
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	
	public String getUserRealName() {
		return userRealName;
	}
	
	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}
	
	public String getUserSex() {
		return userSex;
	}
	
	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}
	
	public UserType getUserType() {
		return userType;
	}
	
	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((userCreatedDate == null) ? 0 : userCreatedDate.hashCode());
		result = PRIME * result + ((userId == null) ? 0 : userId.hashCode());
		result = PRIME * result + ((userName == null) ? 0 : userName.hashCode());
		result = PRIME * result + ((userPwd == null) ? 0 : userPwd.hashCode());
		result = PRIME * result + ((userRealName == null) ? 0 : userRealName.hashCode());
		result = PRIME * result + ((userSex == null) ? 0 : userSex.hashCode());
		result = PRIME * result + ((userType == null) ? 0 : userType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final UserInfoVO other = (UserInfoVO) obj;
		if (userCreatedDate == null) {
			if (other.userCreatedDate != null)
				return false;
		} else if (!userCreatedDate.equals(other.userCreatedDate))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		if (userPwd == null) {
			if (other.userPwd != null)
				return false;
		} else if (!userPwd.equals(other.userPwd))
			return false;
		if (userRealName == null) {
			if (other.userRealName != null)
				return false;
		} else if (!userRealName.equals(other.userRealName))
			return false;
		if (userSex == null) {
			if (other.userSex != null)
				return false;
		} else if (!userSex.equals(other.userSex))
			return false;
		if (userType == null) {
			if (other.userType != null)
				return false;
		} else if (!userType.equals(other.userType))
			return false;
		return true;
	}
	
	public String toString() {
		StringBuffer ret = new StringBuffer();
		ret.append("com.zxx.tsh.view.userinfo.vo.UserInfoVO: userId=[");
		ret.append(userId);
		ret.append("] userType=[");
		ret.append(userType.getTypeId());
		ret.append("] userName=[");
		ret.append(userName);
		ret.append("] userType=[");
		ret.append(userRealName);
		ret.append("] userName=[");
		ret.append(userCreatedDate);
		ret.append("]");
		return ret.toString();
	}

}

⌨️ 快捷键说明

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