|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.LinkedList
public class LinkedList
LinkedList implements the Linked list holding the current,first and last nodes
| Field Summary | |
|---|---|
Node |
current
Current Node |
Node |
first
First Node |
Node |
last
Last Node |
| Constructor Summary | |
|---|---|
LinkedList()
Constructs a blank LinkedList |
|
LinkedList(Node node)
Construts a LinkedList with one Node |
|
| Method Summary | |
|---|---|
void |
appendNode(Node node)
Appends the node after the current node in LinkedList |
Node |
getNext()
Finds the next node and returns node if it is valid or null. |
Node |
getPrevious()
Finds the previous node and returns node if it is valid or null. |
boolean |
isValid()
Test if the current position is a valid position in the list. |
void |
removeNode(Node node)
Removes the Specified node from the LinkedList |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Node current
public Node first
public Node last
| Constructor Detail |
|---|
public LinkedList()
LinkedList
public LinkedList(Node node)
LinkedList with one Node
node - | Method Detail |
|---|
public boolean isValid()
public Node getPrevious()
public Node getNext()
public void appendNode(Node node)
LinkedList
node - public void removeNode(Node node)
LinkedList
node -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||