public boolean equals()

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


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        HealthCheck other = (HealthCheck) obj;
        if (gracePeriod != other.gracePeriod)
            return false;
        if (interval != other.interval)
            return false;
        if (maxFailures != other.maxFailures)
            return false;
        if (parameters == null) {
            if (other.parameters != null)
                return false;
        } else if (!parameters.equals(other.parameters))
            return false;
        if (port == null) {
            if (other.port != null)
                return false;
        } else if (!port.equals(other.port))
            return false;
        if (portIndex == null) {
            if (other.portIndex != null)
                return false;
        } else if (!portIndex.equals(other.portIndex))
            return false;
        if (timeout != other.timeout)
            return false;
        if (type != other.type)
            return false;
        return true;
    }