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

Method equals

guava/src/com/google/common/graph/AbstractGraph.java:33–46  ·  view source on GitHub ↗
(@Nullable Object obj)

Source from the content-addressed store, hash-verified

31 public AbstractGraph() {}
32
33 @Override
34 public final boolean equals(@Nullable Object obj) {
35 if (obj == this) {
36 return true;
37 }
38 if (!(obj instanceof Graph)) {
39 return false;
40 }
41 Graph<?> other = (Graph<?>) obj;
42
43 return isDirected() == other.isDirected()
44 && nodes().equals(other.nodes())
45 && edges().equals(other.edges());
46 }
47
48 @Override
49 public final int hashCode() {

Callers

nothing calls this directly

Calls 4

isDirectedMethod · 0.65
equalsMethod · 0.65
nodesMethod · 0.65
edgesMethod · 0.65

Tested by

no test coverage detected