Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class ContactEntry

    java.lang.Object
      ContactEntry

    public class ContactEntry

extends Object

A entry in a contact list or address book.

Constructor Summary
`ContactEntry()` Default constructor that sets each instance variable to null
`ContactEntry(String name, String phone, String email)` Constructor that sets each instance variable to the corresponding incoming parameter.

Method Summary
`String` | `getEmail()` Method to return the variable email
`String` | `getName()` Method to return the variable name
`String` | `getPhone()` Method to return the variable phone
`void` | `setEmail(String email)` Modifier to set variable email to the incoming email address
`void` | `setName(String name)` Modifier to set variable name to the incoming name
`void` | `setPhone(String phone)` Modifier to set variable phone to the incoming phone number
`String` | `toString()` Method to return a String representation of the contact's information

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ContactEntry

    public ContactEntry()

  Default constructor that sets each instance variable to null

### ContactEntry

    public ContactEntry(String name,
                        String phone,
                        String email)

  Constructor that sets each instance variable to the corresponding incoming parameter.

  Parameters:
    `name` - name of the contact
    `phone` - the phone number of the contact
    `email` - the email address of the contact

Method Detail

### setName

    public void setName(String name)

  Modifier to set variable name to the incoming name

  Parameters:
    `name` - new String for the name

### setPhone

    public void setPhone(String phone)

  Modifier to set variable phone to the incoming phone number

  Parameters:
    `phone` - new String for the phone variable

### setEmail

    public void setEmail(String email)

  Modifier to set variable email to the incoming email address

  Parameters:
    `email` - new String for the email variable

### getName

    public String getName()

  Method to return the variable name

  Returns:
    name

### getPhone

    public String getPhone()

  Method to return the variable phone

  Returns:
    phone

### getEmail

    public String getEmail()

  Method to return the variable email

  Returns:
    email

### toString

    public String toString()

  Method to return a String representation of the contact's information

  Overrides:
    `toString` in class `Object`
  Returns:
    a String representation of the contact's information

Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD