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

ru.curs.celesta.plugin.maven.ScoreProperties Maven / Gradle / Ivy

The newest version!
package ru.curs.celesta.plugin.maven;

import org.apache.maven.plugins.annotations.Parameter;

import java.util.Objects;

public final class ScoreProperties {

    @Parameter(property = "path", required = true)
    private String path;

    public ScoreProperties() {
    }

    public ScoreProperties(String path) {
        this.path = path;
    }

    /**
     * Returns score path.
     * @return
     */
    public String getPath() {
        return path;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (obj instanceof ScoreProperties) {
            ScoreProperties that = (ScoreProperties) obj;
            return this.hashCode() == that.hashCode()
                    && Objects.equals(this.path, that.path);
        }
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return this.path.hashCode();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy