/** * Compares this {@link Execution} with the given object with respect to type and fields. All * fields but the {@link #isAssumed()} are considered for comparison. * * @param obj * The object to be compared with this instance. * * @return true if and only if the current object and the given object have equal values. */ @Override public boolean equals(final Object obj) { if (!(obj instanceof Execution)) { return false; } if (this == obj) { return true; } final Execution other = (Execution) obj; return this.allocationComponent.equals(other.allocationComponent) && this.operation.equals(other.operation) && this.sessionId.equals(other.sessionId) && (this.traceId == other.traceId) && (this.eoi == other.eoi) && (this.ess == other.ess) && (this.tin == other.tin) && (this.tout == other.tout) && (this.assumed == other.assumed); }