|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectintroExam.LinkedList.LL.LLNode
Field Summary | |
LL.LLNode |
next
|
java.lang.Comparable |
value
Note final access modifier: cannot be changed!
As a result, there is no setter for value . |
Constructor Summary | |
LL.LLNode(java.lang.Comparable value)
Constructor builds the LLNode with the supplied parameter; it is followed by an empty list. |
|
LL.LLNode(java.lang.Comparable value,
LL.LLNode next)
Constructor builds the LLNode with the supplied parameters. |
Method Summary | |
LL.LLNode |
getNext()
Returns reference to the next LLNode |
java.lang.Comparable |
getValue()
Returns reference to the value of the object. |
void |
setNext(LL.LLNode newNode)
Sets the next reference of this object to the paramter object |
java.lang.String |
toString()
Returns string representation of the object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final java.lang.Comparable value
final
access modifier: cannot be changed!
As a result, there is no setter for value
.
public LL.LLNode next
Constructor Detail |
public LL.LLNode(java.lang.Comparable value)
value
- to store in this nodepublic LL.LLNode(java.lang.Comparable value, LL.LLNode next)
value
- to store in this nodenext
- must refer to the list that follows itMethod Detail |
public LL.LLNode getNext()
public void setNext(LL.LLNode newNode)
newNode
- which is an object of the class LLNodepublic java.lang.Comparable getValue()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |