MCPcopy
hub / github.com/google/guava / equals

Method equals

guava/src/com/google/common/graph/AbstractNetwork.java:251–264  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

isDirectedMethod · 0.95
nodesMethod · 0.95
edgeIncidentNodesMapMethod · 0.95
isDirectedMethod · 0.65
equalsMethod · 0.65
nodesMethod · 0.65

Tested by

no test coverage detected