Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package jadex.bdi.planlib.watchdog;

Contact information data bean.
  
  public class ContactData
  {
  	//-------- attributes --------
  
The name.
 
 	protected String name;

The email address.
 
 	protected String email;

The mobile phone no.
 
 	protected String phone;

The icq no.
 
 	protected String icq;
 	
 	//-------- constructors --------
 
Constructor for ContactData.
 
 	public ContactData() 
 	{
 		/* default */
 	}

Create a new contact.

Parameters:
name
email The email.
phone The phone.
icq
 
 	public ContactData(String nameString emailString phoneString icq)
 	{
 		this. = name;
 		this. = email;
 		this. = phone;
 		this. = icq;
 	}
 
 	//-------- methods --------
 
Get the name.

Returns:
The name.
 
 	public String getName()
 	{
 		return ;
 	}

Set the name.

Parameters:
name The name.
 
 	public void setName(String name)
 	{
 		this. = name;
 	}

Get the email.

Returns:
The email.
 
 	public String getEmail()
 	{
 		return ;
 	}

Set the email.

Parameters:
email The email.
 
 	public void setEmail(String email)
 	{
 		this. = email;
 	}

Get the phone no.

Returns:
The phone no.
 
 	public String getPhone()
 	{
 		return ;
 	}

Set the phone no.

Parameters:
phone The phone no.
 
 	public void setPhone(String phone)
 	{
		this. = phone;
	}

Getter for icq

Returns:
Returns icq.
	public String getIcq()
	{
		return this.;
	}


Setter for icq.

Parameters:
icq The ContactData.java value to set
	public void setIcq(String icq)
	{
		this. = icq;
	}


Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns:
a string representation of the object.
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		sb.append(getClass()+"(");
		sb.append(", ");
		sb.append(", ");
		sb.append(")");
		return sb.toString();
	}
New to GrepCode? Check out our FAQ X