@Override public int hashCode() { int result = (int) (getTimestamp() ^ (getTimestamp() >>> 32)); result = 31 * result + (getComponentName() != null ? getComponentName().hashCode() : 0); result = 31 * result + (getStreamId() != null ? getStreamId().hashCode() : 0); result = 31 * result + (getTargetComponents() != null ? getTargetComponents().hashCode() : 0); result = 31 * result + (getEventId() != null ? getEventId().hashCode() : 0); result = 31 * result + (getRootIds() != null ? getRootIds().hashCode() : 0); result = 31 * result + (getParentIds() != null ? getParentIds().hashCode() : 0); result = 31 * result + (getFieldsAndValues() != null ? getFieldsAndValues().hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof EventInformation)) return false; EventInformation that = (EventInformation) o; if (getTimestamp() != that.getTimestamp()) return false; if (getComponentName() != null ? !getComponentName().equals(that.getComponentName()) : that.getComponentName() != null) return false; if (getStreamId() != null ? !getStreamId().equals(that.getStreamId()) : that.getStreamId() != null) return false; if (getTargetComponents() != null ? !getTargetComponents().equals(that.getTargetComponents()) : that.getTargetComponents() != null) return false; if (getEventId() != null ? !getEventId().equals(that.getEventId()) : that.getEventId() != null) return false; if (getRootIds() != null ? !getRootIds().equals(that.getRootIds()) : that.getRootIds() != null) return false; if (getParentIds() != null ? !getParentIds().equals(that.getParentIds()) : that.getParentIds() != null) return false; return getFieldsAndValues() != null ? getFieldsAndValues().equals(that.getFieldsAndValues()) : that.getFieldsAndValues() == null; }