MCPcopy Create free account
hub / github.com/bft-smart/library / equals

Method equals

src/main/java/bftsmart/reconfiguration/views/View.java:96–107  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

94 }
95
96 @Override
97 public boolean equals(Object obj) {
98 if (obj instanceof View) {
99 View v = (View) obj;
100// return (this.addresses.equals(v.addresses) &&
101 return (this.addresses.keySet().equals(v.addresses.keySet()) &&
102 Arrays.equals(this.processes, v.processes)
103 && this.id == v.id && this.f == v.f);
104
105 }
106 return false;
107 }
108
109 public int hashCode() {
110 int hash = 1;

Callers

nothing calls this directly

Calls 2

keySetMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected