/** {@inheritDoc} */ @Override public int hashCode() { int res = type.hashCode(); res = 31 * res + jobId.hashCode(); res = 31 * res + taskNum; res = 31 * res + attempt; return res; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof HadoopTaskInfo)) return false; HadoopTaskInfo that = (HadoopTaskInfo) o; return attempt == that.attempt && taskNum == that.taskNum && jobId.equals(that.jobId) && type == that.type; }