public boolean equals()

in src/java/org/apache/ivy/osgi/core/BundleInfo.java [265:330]


    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof BundleInfo)) {
            return false;
        }
        BundleInfo other = (BundleInfo) obj;
        if (capabilities == null) {
            if (other.capabilities != null) {
                return false;
            }
        } else if (!capabilities.equals(other.capabilities)) {
            return false;
        }
        if (requirements == null) {
            if (other.requirements != null) {
                return false;
            }
        } else if (!requirements.equals(other.requirements)) {
            return false;
        }
        if (symbolicName == null) {
            if (other.symbolicName != null) {
                return false;
            }
        } else if (!symbolicName.equals(other.symbolicName)) {
            return false;
        }
        if (version == null) {
            if (other.version != null) {
                return false;
            }
        } else if (!version.equals(other.version)) {
            return false;
        }
        if (executionEnvironments == null) {
            if (other.executionEnvironments != null) {
                return false;
            }
        } else if (!executionEnvironments.equals(other.executionEnvironments)) {
            return false;
        }
        if (isSource != other.isSource) {
            return false;
        }
        if (symbolicNameTarget == null) {
            if (other.symbolicNameTarget != null) {
                return false;
            }
        } else if (!symbolicNameTarget.equals(other.symbolicNameTarget)) {
            return false;
        }
        if (versionTarget == null) {
            if (other.versionTarget != null) {
                return false;
            }
        } else if (!versionTarget.equals(other.versionTarget)) {
            return false;
        }
        return hasInnerClasspath == other.hasInnerClasspath
                && (classpath == null ? other.classpath == null : classpath.equals(other.classpath));
    }