|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object InfoLinkedList
public class InfoLinkedList
A LinkedList containing Info objects as data
Field Summary | |
---|---|
private Node |
head
|
private int |
size
|
private Node |
tail
|
Constructor Summary | |
---|---|
InfoLinkedList()
|
Method Summary | |
---|---|
void |
add(Info data)
Add a new Info object to the end of the list. |
Info |
get(int index)
return the Info object at position index. |
void |
printAll()
for debugging. |
int |
size()
returns the size of this list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Node head
private Node tail
private int size
Constructor Detail |
---|
public InfoLinkedList()
Method Detail |
---|
public void add(Info data)
data
- public Info get(int index)
index
-
public int size()
public void printAll()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |