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

io.quarkus.domino.gradle.PublishedModule Maven / Gradle / Ivy

There is a newer version: 0.0.116
Show newest version
package io.quarkus.domino.gradle;

import java.util.Objects;

class PublishedModule implements GradlePublishedModule {

    private final String group;
    private final String name;
    private final String version;
    private final String projectPath;

    PublishedModule(String group, String name, String version, String projectPath) {
        super();
        this.group = group;
        this.name = name;
        this.version = version;
        this.projectPath = projectPath;
    }

    @Override
    public String getGroup() {
        return group;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getVersion() {
        return version;
    }

    @Override
    public String getProjectPath() {
        return projectPath;
    }

    @Override
    public int hashCode() {
        return Objects.hash(group, name, version, projectPath);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (!GradlePublishedModule.class.isAssignableFrom(obj.getClass()))
            return false;
        GradlePublishedModule other = (GradlePublishedModule) obj;
        return Objects.equals(group, other.getGroup()) && Objects.equals(name, other.getName())
                && Objects.equals(version, other.getVersion())
                && Objects.equals(projectPath, other.getProjectPath());
    }

    @Override
    public String toString() {
        return group + ":" + name + ":" + version;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy