package com.jaspersoft.jasperserver.jaxrs.client.dto.settings; /** * @author Tetiana Iefimenko */ public class ItemRegistry { private String id; private String label; private String description; public ItemRegistry() { } public ItemRegistry(ItemRegistry other) { this.id = other.id; this.label = other.label; this.description = other.description; } public String getId() { return id; } public ItemRegistry setId(String id) { this.id = id; return this; } public String getLabel() { return label; } public ItemRegistry setLabel(String label) { this.label = label; return this; } public String getDescription() { return description; } public ItemRegistry setDescription(String description) { this.description = description; return this; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ItemRegistry)) return false; ItemRegistry that = (ItemRegistry) o; if (getId() != null ? !getId().equals(that.getId()) : that.getId() != null) return false; if (getLabel() != null ? !getLabel().equals(that.getLabel()) : that.getLabel() != null) return false; return !(getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null); } @Override public int hashCode() { int result = getId() != null ? getId().hashCode() : 0; result = 31 * result + (getLabel() != null ? getLabel().hashCode() : 0); result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0); return result; } @Override public String toString() { return "ItemRegistry{" + "id='" + id + '\'' + ", label='" + label + '\'' + ", description='" + description + '\'' + '}'; } }