Equals is based solely on the endpoint and the original query
(final Object obj)
| 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() { |
no outgoing calls