
abstract class NoFim
    extends No
{
    Object end;
    
    public NoFim(Grafo g, Object end) {
	super(g);
	this.end = end;
    }
    
    public No[] buildProx() {
	return new No[0];
    }
    
    public boolean equals(Object other) {
	return other instanceof NoFim && equals((NoFim) other);
    }
    
    public boolean equals(NoFim other) {
	return other != null && end.equals(other.end);
    }
    
    public int hashCode() {
	return end.hashCode();
    }
}
