dnet-applications/libs/dnet-exporter-model/src/main/java/eu/dnetlib/openaire/exporter/model/context/CategorySummary.java

54 lines
948 B
Java
Raw Normal View History

package eu.dnetlib.openaire.exporter.model.context;
2022-02-04 10:12:15 +01:00
2023-06-29 14:56:31 +02:00
import java.util.Objects;
2022-02-04 10:12:15 +01:00
public class CategorySummary {
private String id;
private String label;
private boolean hasConcept;
public String getId() {
return id;
}
public String getLabel() {
return label;
}
public boolean isHasConcept() {
return hasConcept;
}
public CategorySummary setId(final String id) {
this.id = id;
return this;
}
public CategorySummary setLabel(final String label) {
this.label = label;
return this;
}
public CategorySummary setHasConcept(final boolean hasConcept) {
this.hasConcept = hasConcept;
return this;
}
2023-06-29 14:56:31 +02:00
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public boolean equals(final Object obj) {
if (this == obj) { return true; }
if (!(obj instanceof CategorySummary)) { return false; }
final CategorySummary other = (CategorySummary) obj;
return Objects.equals(id, other.id);
}
2022-02-04 10:12:15 +01:00
}