Package | Class | Tree | Deprecated | Index | Help

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

## Class ContactNode

    java.lang.Object
      ContactNode

    public class ContactNode

extends Object

A node in the ContactList linked list

Constructor Summary
`ContactNode(ContactEntry data)` Constructor that sets each instance variable to the corresponding incoming parameter.
`ContactNode(ContactEntry data, ContactNode next)` Constructor that sets each instance variable to the corresponding incoming parameter.

Method Summary
`ContactEntry` | `getData()` Returns the data of the node
`ContactNode` | `getNext()` Returns the next node
`void` | `setData(ContactEntry data)` Sets the data of the node to the incoming ContactEntry
`void` | `setNext(ContactNode next)` Sets the next node to the incoming ContactNode
`String` | `toString()` Method to return a String representation of the node's contact information

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

Constructor Detail

### ContactNode

    ContactNode(ContactEntry data)

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

  Parameters:
    `data` - the data of the node

### ContactNode

    ContactNode(ContactEntry data,
                ContactNode next)

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

  Parameters:
    `data` - the data of the node
    `next` -

Method Detail

### setData

    public void setData(ContactEntry data)

  Sets the data of the node to the incoming ContactEntry

  Parameters:
    `data` - the data of node

### setNext

    public void setNext(ContactNode next)

  Sets the next node to the incoming ContactNode

  Parameters:
    `next` - the next node

### getData

    public ContactEntry getData()

  Returns the data of the node

  Returns:
    the data of the node

### getNext

    public ContactNode getNext()

  Returns the next node

  Returns:
    the next node

### toString

    public String toString()

  Method to return a String representation of the node's contact 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