(@Nullable Object obj)
| 249 | } |
| 250 | |
| 251 | @Override |
| 252 | public final boolean equals(@Nullable Object obj) { |
| 253 | if (obj == this) { |
| 254 | return true; |
| 255 | } |
| 256 | if (!(obj instanceof Network)) { |
| 257 | return false; |
| 258 | } |
| 259 | Network<?, ?> other = (Network<?, ?>) obj; |
| 260 | |
| 261 | return isDirected() == other.isDirected() |
| 262 | && nodes().equals(other.nodes()) |
| 263 | && edgeIncidentNodesMap(this).equals(edgeIncidentNodesMap(other)); |
| 264 | } |
| 265 | |
| 266 | @Override |
| 267 | public final int hashCode() { |
nothing calls this directly
no test coverage detected