public class Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
name
Il nome del nodo
|
Constructor and Description |
---|
Node(java.lang.String name)
Crea un nuovo nodo
|
public Node(java.lang.String name)
name
- il nome del nodo rappresentatopublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object n)
equals
in class java.lang.Object
n
- l'oggetto da confrontare