com.capitalone.dashboard.model.SonarProject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.model;
import java.util.Objects;
public class SonarProject extends CollectorItem {
private static final String INSTANCE_URL = "instanceUrl";
private static final String PROJECT_NAME = "projectName";
private static final String PROJECT_ID = "projectId";
public String getInstanceUrl() {
return (String) getOptions().get(INSTANCE_URL);
}
public void setInstanceUrl(String instanceUrl) {
getOptions().put(INSTANCE_URL, instanceUrl);
}
public String getProjectId() {
return (String) getOptions().get(PROJECT_ID);
}
public void setProjectId(String id) {
getOptions().put(PROJECT_ID, id);
}
public String getProjectName() {
return (String) getOptions().get(PROJECT_NAME);
}
public void setProjectName(String name) {
getOptions().put(PROJECT_NAME, name);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof SonarProject)) return false;
SonarProject that = (SonarProject) o;
return Objects.equals(getProjectName(), that.getProjectName()) && Objects.equals(getInstanceUrl(), that.getInstanceUrl());
}
@Override
public int hashCode() {
int result = getInstanceUrl().hashCode();
result = 31 * result + getProjectName().hashCode();
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy