in utils/src/main/java/com/google/apphosting/utils/config/AppEngineWebXml.java [1450:1487]
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
AutomaticScaling other = (AutomaticScaling) obj;
return Objects.equals(maxPendingLatency, other.maxPendingLatency)
&& Objects.equals(minPendingLatency, other.minPendingLatency)
&& Objects.equals(maxIdleInstances, other.maxIdleInstances)
&& Objects.equals(minIdleInstances, other.minIdleInstances)
&& Objects.equals(targetCpuUtilization, other.targetCpuUtilization)
&& Objects.equals(targetThroughputUtilization, other.targetThroughputUtilization)
&& Objects.equals(minInstances, other.minInstances)
&& Objects.equals(maxInstances, other.maxInstances)
&& Objects.equals(maxConcurrentRequests, other.maxConcurrentRequests)
&& Objects.equals(minNumInstances, other.minNumInstances)
&& Objects.equals(maxNumInstances, other.maxNumInstances)
&& Objects.equals(coolDownPeriodSec, other.coolDownPeriodSec)
&& Objects.equals(cpuUtilization, other.cpuUtilization)
&& Objects.equals(customMetrics, other.customMetrics)
&& Objects.equals(targetNetworkSentBytesPerSec, other.targetNetworkSentBytesPerSec)
&& Objects.equals(targetNetworkSentPacketsPerSec, other.targetNetworkSentPacketsPerSec)
&& Objects.equals(targetNetworkReceivedBytesPerSec,
other.targetNetworkReceivedBytesPerSec)
&& Objects.equals(targetNetworkReceivedPacketsPerSec,
other.targetNetworkReceivedPacketsPerSec)
&& Objects.equals(targetDiskWriteBytesPerSec, other.targetDiskWriteBytesPerSec)
&& Objects.equals(targetDiskWriteOpsPerSec, other.targetDiskWriteOpsPerSec)
&& Objects.equals(targetDiskReadBytesPerSec, other.targetDiskReadBytesPerSec)
&& Objects.equals(targetDiskReadOpsPerSec, other.targetDiskReadOpsPerSec)
&& Objects.equals(targetRequestCountPerSec, other.targetRequestCountPerSec)
&& Objects.equals(targetConcurrentRequests, other.targetConcurrentRequests);
}