/*
 * Created on Sep 6, 2005
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package edu.uprm.ece.icom5016.bean;

/**
 * @author elliot
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class Customer {
	private String id = null;
	//private int pass = 0;
	
	public Customer(){
		
	}
	
	public Customer(String id){//, int pass){//, String session){
		this.id = id;
		//this.pass = pass;
		//this.session = session;
	}
	/**
	 * @return
	 */
	public String getId() {
		return id;
	}

	/**
	 * @return
	 */
	/*public String getSession() {
		return session;
	}*/

	/**
	 * @param string
	 */
	public void setId(String string) {
		id = string;
	}

	/**
	 * @param string
	 */
	/*public void setSession(String string) {
		session = string;
	}*/
	
	public boolean equals(Object o){
		if(! (o instanceof Customer))
			return false;
		Customer c = (Customer) o;
		return c.id.equals(this.id);// && c.pass == this.pass;
	}
	
	public int hashcode(){
		int result = 17;
		result = 37*result + this.id.hashCode();
		//result = 37*result + this.pass;
		return result;
	}

}
