/** * {@inheritDoc} */ @Override public boolean equals(final Object obj) { if (obj == null) return false; if (obj == this) return true; if (obj.getClass() != this.getClass()) return false; final AbstractEvent castedRecord = (AbstractEvent) obj; if (this.getLoggingTimestamp() != castedRecord.getLoggingTimestamp()) return false; if (this.getTimestamp() != castedRecord.getTimestamp()) return false; return true; }
/** * {@inheritDoc} */ @Override public int hashCode() { int code = 0; code += ((int)this.getTimestamp()); return code; }
/** * {@inheritDoc} */ @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (obj.getClass() != this.getClass()) { return false; } final AbstractEvent castedRecord = (AbstractEvent) obj; if (this.getLoggingTimestamp() != castedRecord.getLoggingTimestamp()) { return false; } if (this.getTimestamp() != castedRecord.getTimestamp()) { return false; } return true; } /**