in mantis-common/src/main/java/io/mantisrx/runtime/descriptor/StageSchedulingInfo.java [128:166]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
StageSchedulingInfo other = (StageSchedulingInfo) obj;
if (hardConstraints == null) {
if (other.hardConstraints != null)
return false;
} else if (!hardConstraints.equals(other.hardConstraints))
return false;
if (machineDefinition == null) {
if (other.machineDefinition != null)
return false;
} else if (!machineDefinition.equals(other.machineDefinition))
return false;
if (numberOfInstances != other.numberOfInstances)
return false;
if (scalable != other.scalable)
return false;
if (scalingPolicy == null) {
if (other.scalingPolicy != null)
return false;
} else if (!scalingPolicy.equals(other.scalingPolicy))
return false;
if (softConstraints == null) {
if (other.softConstraints != null)
return false;
} else if (!softConstraints.equals(other.softConstraints))
return false;
if (containerAttributes == null) {
if (other.containerAttributes != null)
return false;
} else if (!containerAttributes.equals(other.containerAttributes))
return false;
return true;
}