Java Code Examples for org.gradle.api.artifacts.Dependency#getClass()

The following examples show how to use org.gradle.api.artifacts.Dependency#getClass() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultExternalModuleDependency.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ExternalModuleDependency that = (ExternalModuleDependency) dependency;
    return isContentEqualsFor(that);

}
 
Example 2
Source File: DefaultProjectDependency.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ProjectDependency that = (ProjectDependency) dependency;
    if (!isCommonContentEquals(that)) {
        return false;
    }

    return dependencyProject.equals(that.getDependencyProject());
}
 
Example 3
Source File: DefaultClientModule.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ClientModule that = (ClientModule) dependency;
    return isContentEqualsFor(that) && dependencies.equals(that.getDependencies());

}
 
Example 4
Source File: DefaultExternalModuleDependency.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    DefaultExternalModuleDependency that = (DefaultExternalModuleDependency) dependency;
    if (!isContentEqualsFor(that)) {
        return false;
    }

    return changing == that.isChanging();
}
 
Example 5
Source File: DefaultProjectDependency.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ProjectDependency that = (ProjectDependency) dependency;
    if (!isCommonContentEquals(that)) {
        return false;
    }

    return dependencyProject.equals(that.getDependencyProject());
}
 
Example 6
Source File: DefaultClientModule.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ClientModule that = (ClientModule) dependency;
    if (!isContentEqualsFor(that)) {
        return false;
    }

    return dependencies.equals(that.getDependencies());
}
 
Example 7
Source File: DefaultExternalModuleDependency.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ExternalModuleDependency that = (ExternalModuleDependency) dependency;
    return isContentEqualsFor(that);

}
 
Example 8
Source File: DefaultProjectDependency.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ProjectDependency that = (ProjectDependency) dependency;
    if (!isCommonContentEquals(that)) {
        return false;
    }

    return dependencyProject.equals(that.getDependencyProject());
}
 
Example 9
Source File: DefaultClientModule.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ClientModule that = (ClientModule) dependency;
    return isContentEqualsFor(that) && dependencies.equals(that.getDependencies());

}
 
Example 10
Source File: DefaultExternalModuleDependency.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    DefaultExternalModuleDependency that = (DefaultExternalModuleDependency) dependency;
    if (!isContentEqualsFor(that)) {
        return false;
    }

    return changing == that.isChanging();
}
 
Example 11
Source File: DefaultProjectDependency.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ProjectDependency that = (ProjectDependency) dependency;
    if (!isCommonContentEquals(that)) {
        return false;
    }

    return dependencyProject.equals(that.getDependencyProject());
}
 
Example 12
Source File: DefaultClientModule.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public boolean contentEquals(Dependency dependency) {
    if (this == dependency) {
        return true;
    }
    if (dependency == null || getClass() != dependency.getClass()) {
        return false;
    }

    ClientModule that = (ClientModule) dependency;
    if (!isContentEqualsFor(that)) {
        return false;
    }

    return dependencies.equals(that.getDependencies());
}