java.lang.Objectunit4.collectionsLib.Node<T>
public class Node<T>
Constructor Summary | |
---|---|
Node(T x)
|
|
Node(T x,
Node<T> p)
|
Method Summary | |
---|---|
T |
getInfo()
|
Node<T> |
getNext()
|
void |
setInfo(T x)
|
void |
setNext(Node<T> p)
|
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> p)
x
- הרך החוליהp
- הפנייה לחוליה העוקבתMethod Detail |
---|
public T getInfo()
public void setInfo(T x)
x
- ערך החוליה לשינויpublic Node<T> getNext()
public void setNext(Node<T> p)
p
- הפנייה לחוליה העוקבתpublic String toString()
toString
in class java.lang.Object