content: package com.anilallewar.microservices.user.dto;
  
  public class UserDTO {
  	/** The first name. */
  	private String firstName;
  
  	/** The last name. */
  	private String lastName;
  
  	/** The user name. */
  	private String userName;
  
  	/** The email address. */
  	private String emailAddress;
  
  	/**
  	 * Instantiates a new user dto.
  	 */
  	public UserDTO() {
  		super();
  		// TODO Auto-generated constructor stub
  	}
  
  	/**
  	 * Instantiates a new user dto.
  	 *
  	 * @param firstName
  	 *            the first name
  	 * @param lastName
  	 *            the last name
  	 * @param userName
  	 *            the user name
  	 * @param emailAddress
  	 *            the email address
  	 */
  	public UserDTO(String firstName, String lastName, String userName, String emailAddress) {
  		super();
  		this.firstName = firstName;
  		this.lastName = lastName;
  		this.userName = userName;
  		this.emailAddress = emailAddress;
  	}
  
  	/**
  	 * Gets the first name.
  	 *
  	 * @return the first name
  	 */
  	public String getFirstName() {
  		return firstName;
  	}
  
  	/**
  	 * Sets the first name.
  	 *
  	 * @param firstName
  	 *            the new first name
  	 */
  	public void setFirstName(String firstName) {
  		this.firstName = firstName;
  	}
  
  	/**
  	 * Gets the last name.
  	 *
  	 * @return the last name
  	 */
  	public String getLastName() {
  		return lastName;
  	}
  
  	/**
  	 * Sets the last name.
  	 *
  	 * @param lastName
  	 *            the new last name
  	 */
  	public void setLastName(String lastName) {
  		this.lastName = lastName;
  	}
  
  	/**
  	 * Gets the user name.
  	 *
  	 * @return the user name
  	 */
  	public String getUserName() {
  		return userName;
  	}
  
  	/**
  	 * Sets the user name.
  	 *
  	 * @param userName
  	 *            the new user name
  	 */
  	public void setUserName(String userName) {
  		this.userName = userName;
  	}
  
  	/**
  	 * Gets the email address.
  	 *
  	 * @return the email address
  	 */
  	public String getEmailAddress() {
  		return emailAddress;
  	}
  
  	/**
  	 * Sets the email address.
  	 *
  	 * @param emailAddress
  	 *            the new email address
  	 */
  	public void setEmailAddress(String emailAddress) {
  		this.emailAddress = emailAddress;
  	}
  
  	/*
  	 * (non-Javadoc)
  	 * 
  	 * @see java.lang.Object#hashCode()
  	 */
  	@Override
  	public int hashCode() {
  		final int prime = 31;
  		int result = 1;
  		result = prime * result + ((emailAddress == null) ? 0 : emailAddress.hashCode());
  		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
  		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
  		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
  		return result;
  	}
  
  	/*
  	 * (non-Javadoc)
  	 * 
  	 * @see java.lang.Object#equals(java.lang.Object)
  	 */
  	@Override
  	public boolean equals(Object obj) {
  		if (this == obj)
  			return true;
  		if (obj == null)
  			return false;
  		if (getClass() != obj.getClass())
  			return false;
  		UserDTO other = (UserDTO) obj;
  		if (emailAddress == null) {
  			if (other.emailAddress != null)
  				return false;
  		} else if (!emailAddress.equals(other.emailAddress))
  			return false;
  		if (firstName == null) {
  			if (other.firstName != null)
  				return false;
  		} else if (!firstName.equals(other.firstName))
  			return false;
  		if (lastName == null) {
  			if (other.lastName != null)
  				return false;
  		} else if (!lastName.equals(other.lastName))
  			return false;
  		if (userName == null) {
  			if (other.userName != null)
  				return false;
  		} else if (!userName.equals(other.userName))
  			return false;
  		return true;
  	}
  
  	/*
  	 * (non-Javadoc)
  	 * 
  	 * @see java.lang.Object#toString()
  	 */
  	@Override
  	public String toString() {
  		return "UserDTO [firstName=" + firstName + ", lastName=" + lastName + ", userName=" + userName
  				+ ", emailAddress=" + emailAddress + "]";
  	}
  }
  