(Object obj)
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public boolean equals(Object obj) { |
| 64 | if (this == obj) |
| 65 | return true; |
| 66 | if (obj == null) |
| 67 | return false; |
| 68 | if (getClass() != obj.getClass()) |
| 69 | return false; |
| 70 | Node other = (Node) obj; |
| 71 | if (host == null) { |
| 72 | if (other.host != null) |
| 73 | return false; |
| 74 | } else if (!host.equals(other.host)) |
| 75 | return false; |
| 76 | if (id != other.id) |
| 77 | return false; |
| 78 | if (port != other.port) |
| 79 | return false; |
| 80 | return true; |
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | public String toString() { |