Пример #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((coordenada == null) ? 0 : coordenada.hashCode());
   result = prime * result + ((direcao == null) ? 0 : direcao.hashCode());
   return result;
 }
Пример #2
0
 @Override
 public String toString() {
   return coordenada.toString() + " " + direcao.getToken();
 }