All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jfrog.build.api.dependency.pattern.BuildDependencyPattern Maven / Gradle / Ivy

There is a newer version: 2.41.23
Show newest version
package org.jfrog.build.api.dependency.pattern;

public class BuildDependencyPattern extends DependencyPattern {

    private String buildName;
    private String buildNumber;

    public BuildDependencyPattern(String pattern, String matrixParams, String targetPattern, PatternType patternType,
            String buildName, String buildNumber) {
        super(pattern, matrixParams, targetPattern, patternType);
        this.buildName = buildName;
        this.buildNumber = buildNumber;
    }

    public String getBuildName() {
        return buildName;
    }

    public String getBuildNumber() {
        return buildNumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof BuildDependencyPattern)) {
            return false;
        }

        BuildDependencyPattern that = (BuildDependencyPattern) o;

        if (!buildName.equals(that.buildName)) {
            return false;
        }
        if (!buildNumber.equals(that.buildNumber)) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int result = buildName.hashCode();
        result = 31 * result + buildNumber.hashCode();
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy