(final Object object)
| 236 | } |
| 237 | |
| 238 | @Override |
| 239 | public boolean equals(final Object object) { |
| 240 | if (object == this) { |
| 241 | return true; |
| 242 | } |
| 243 | if (!(object instanceof Deadline)) { |
| 244 | return false; |
| 245 | } |
| 246 | final Deadline that = (Deadline) object; |
| 247 | if (this.ticker == null ? that.ticker != null : this.ticker != that.ticker) { |
| 248 | return false; |
| 249 | } |
| 250 | return this.deadlineNanos == that.deadlineNanos; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Time source representing nanoseconds since fixed but arbitrary point in time. |