|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.amino.ds.graph.Node<E>
E - type of element in nodepublic class Node<E>
Node in the graph.
| Constructor Summary | |
|---|---|
Node(E e)
Constructs a graph node, with specified element e. |
|
| Method Summary | |
|---|---|
int |
compareTo(Node<E> o)
|
boolean |
equals(java.lang.Object n)
|
E |
getValue()
|
int |
hashCode()
|
void |
setValue(E value)
set the value of this node. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node(E e)
e - element in node| Method Detail |
|---|
public E getValue()
public void setValue(E value)
value - the value to be setpublic int compareTo(Node<E> o)
compareTo in interface java.lang.Comparable<Node<E>>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object n)
equals in class java.lang.Objectpublic 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 | |||||||||