in mantis-control-plane/mantis-control-plane-server/src/main/java/io/mantisrx/master/jobcluster/job/worker/MantisWorkerMetadataImpl.java [368:392]
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MantisWorkerMetadataImpl that = (MantisWorkerMetadataImpl) o;
return workerIndex == that.workerIndex
&& workerNumber == that.workerNumber
&& stageNum == that.stageNum
&& numberOfPorts == that.numberOfPorts
&& acceptedAt == that.acceptedAt
&& launchedAt == that.launchedAt
&& startingAt == that.startingAt
&& startedAt == that.startedAt
&& completedAt == that.completedAt
&& resubmitOf == that.resubmitOf
&& totalResubmitCount == that.totalResubmitCount
&& Objects.equals(jobId, that.jobId)
&& Objects.equals(workerId, that.workerId)
&& Objects.equals(workerPorts, that.workerPorts)
&& state == that.state
&& Objects.equals(slave, that.slave)
&& Objects.equals(slaveID, that.slaveID)
&& reason == that.reason
&& Objects.equals(preferredCluster, that.preferredCluster)
&& Objects.equals(resourceCluster, that.resourceCluster);
}