| Package | Description |
|---|---|
| edu.govschool.midterm.problem1 |
| Modifier and Type | Field and Description |
|---|---|
protected Node |
LinkedList.head
The first
Node in the LinkedList. |
protected Node |
LinkedList.tail
The last
Node in the LinkedList. |
| Modifier and Type | Method and Description |
|---|---|
Node |
LinkedList.getHead()
Get the head of the
LinkedList. |
Node |
Node.getNext()
Get the following
Node. |
Node |
LinkedList.getTail()
Get the tail of the
LinkedList. |
| Modifier and Type | Method and Description |
|---|---|
void |
LinkedList.append(Node node)
Add a
Node to the LinkedList. |
void |
Set.append(Node node)
Adds a
Node to the Set. |
boolean |
LinkedList.contains(Node node)
Tests if a
Node is contained in the LinkedList. |
void |
LinkedList.setHead(Node node)
Set the head of the
LinkedList. |
void |
Node.setNext(Node next)
Set the following
Node. |
void |
LinkedList.setTail(Node node)
Set the tail of the
LinkedList. |
| Constructor and Description |
|---|
LinkedList(Node node)
Default constructor.
|
Node(int data,
Node next)
Default constructor.
|
Node(Node next)
Convenience constructor.
|
Set(Node node)
Default constructor.
|