MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / equals

Method equals

src/stats/QueryStats.java:290–304  ·  view source on GitHub ↗

Equals is based solely on the endpoint and the original query

(final Object obj)

Source from the content-addressed store, hash-verified

288 * Equals is based solely on the endpoint and the original query
289 */
290 @Override
291 public boolean equals(final Object obj) {
292 if (obj == null) {
293 return false;
294 }
295 if (!(obj instanceof QueryStats)) {
296 return false;
297 }
298 if (obj == this) {
299 return true;
300 }
301 final QueryStats stats = (QueryStats)obj;
302 return Objects.equal(remote_address, stats.remote_address)
303 && Objects.equal(query, stats.query);
304 }
305
306 @Override
307 public String toString() {

Callers 7

testEqualsNullMethod · 0.95
testEqualsWrongTypeMethod · 0.95
testEqualsSameMethod · 0.95
callMethod · 0.45
resolveUIDsMethod · 0.45
parseSearchTypeMethod · 0.45

Calls

no outgoing calls

Tested by 4

testEqualsNullMethod · 0.76
testEqualsWrongTypeMethod · 0.76
testEqualsSameMethod · 0.76