public boolean equals()

in containers-api/src/main/java/org/apache/aries/containers/ServiceConfig.java [158:205]


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ServiceConfig other = (ServiceConfig) obj;
        if (!Arrays.equals(commandLine, other.commandLine))
            return false;
        if (containerImage == null) {
            if (other.containerImage != null)
                return false;
        } else if (!containerImage.equals(other.containerImage))
            return false;
        if (containerPorts == null) {
            if (other.containerPorts != null)
                return false;
        } else if (!containerPorts.equals(other.containerPorts))
            return false;
        if (entryPoint == null) {
            if (other.entryPoint != null)
                return false;
        } else if (!entryPoint.equals(other.entryPoint))
            return false;
        if (envVars == null) {
            if (other.envVars != null)
                return false;
        } else if (!envVars.equals(other.envVars))
            return false;
        if (healthChecks == null) {
            if (other.healthChecks != null)
                return false;
        } else if (!healthChecks.equals(other.healthChecks))
            return false;
        if (Double.doubleToLongBits(requestedCPUunits) != Double.doubleToLongBits(other.requestedCPUunits))
            return false;
        if (requestedInstances != other.requestedInstances)
            return false;
        if (Double.doubleToLongBits(requestedMemory) != Double.doubleToLongBits(other.requestedMemory))
            return false;
        if (serviceName == null) {
            if (other.serviceName != null)
                return false;
        } else if (!serviceName.equals(other.serviceName))
            return false;
        return true;
    }