fr.paris.lutece.plugins.stock.modules.tickets.business
Class Contact

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.modules.tickets.business.Contact

public class Contact
extends Object

This object store informations about a partner's contact

Author:
jchaline

Field Summary
static Comparator<Contact> COMPARATOR_USING_ID
          comparator of contact, using ID parameter
 
Constructor Summary
Contact()
          default constructor
Contact(int id, String name, String phoneNumber, String mail)
          Constructor of the contact
 
Method Summary
 boolean equals(Object c)
          To know if two contact are the same
 int getId()
          get the id of the contact
 String getMail()
          get the adress mail of the contact
 String getName()
          get the name of the contact
 String getPhoneNumber()
          get the phone number of the contact
 void setId(int id)
          Set the phone number
 void setMail(String mail)
          Set the phone number
 void setName(String name)
          Set the phone number
 void setPhoneNumber(String phoneNumber)
          Set the phone number
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPARATOR_USING_ID

public static final Comparator<Contact> COMPARATOR_USING_ID
comparator of contact, using ID parameter

Constructor Detail

Contact

public Contact(int id,
               String name,
               String phoneNumber,
               String mail)
Constructor of the contact

Parameters:
id - the contact id
name - the contact name
phoneNumber - the contact phone number
mail - the contact mail

Contact

public Contact()
default constructor

Method Detail

getId

public int getId()
get the id of the contact

Returns:
the contact id

setId

public void setId(int id)
Set the phone number

Parameters:
id -

getName

public String getName()
get the name of the contact

Returns:
the name

setName

public void setName(String name)
Set the phone number

Parameters:
name - the contact name

getMail

public String getMail()
get the adress mail of the contact

Returns:
the adress mail

setMail

public void setMail(String mail)
Set the phone number

Parameters:
mail - the contact adress mail

getPhoneNumber

public String getPhoneNumber()
get the phone number of the contact

Returns:
the phone number

setPhoneNumber

public void setPhoneNumber(String phoneNumber)
Set the phone number

Parameters:
phoneNumber - the contact phone number

equals

public boolean equals(Object c)
To know if two contact are the same

Overrides:
equals in class Object
Parameters:
c - the other contact
Returns:
true if they are the same, false otherwise

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Mairie de Paris. All Rights Reserved.