|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object unit4.collectionsLib.Node<T>
T
- טיפוס הערך בחוליהpublic class Node<T>
Constructor Summary | |
---|---|
Node(T x)
|
|
Node(T x,
Node<T> next)
|
Method Summary | |
---|---|
T |
getInfo()
|
Node<T> |
getNext()
|
void |
setInfo(T x)
|
void |
setNext(Node<T> next)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node(T x)
x
- ערך החוליהpublic Node(T x, Node<T> next)
x
- ערך החוליהnext
- הפניה לחוליה העוקבתMethod Detail |
---|
public T getInfo()
public void setInfo(T x)
x
- ערך החוליה החדשpublic Node<T> getNext()
public void setNext(Node<T> next)
next
- הפניה לחוליה העוקבתpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |