Java tutorial
/* * * JAQPOT Quattro * * JAQPOT Quattro and the components shipped with it (web applications and beans) * are licensed by GPL v3 as specified hereafter. Additional components may ship * with some other licence as will be specified therein. * * Copyright (C) 2014-2015 KinkyDesign (Charalampos Chomenidis, Pantelis Sopasakis) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Source code: * The source code of JAQPOT Quattro is available on github at: * https://github.com/KinkyDesign/JaqpotQuattro * All source files of JAQPOT Quattro that are stored on github are licensed * with the aforementioned licence. */ package org.jaqpot.algorithms.dto.dataset; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.Map; import java.util.Objects; /** * * @author Pantelis Sopasakis * @author Charalampos Chomenidis * */ @JsonIgnoreProperties(ignoreUnknown = true) public class FeatureInfo { private String URI; private String name; private String units; private Map<String, Object> conditions; private Dataset.DescriptorCategory category; public FeatureInfo() { } public FeatureInfo(String URI, String name) { this.URI = URI; this.name = name; } public String getURI() { return URI; } public void setURI(String URI) { this.URI = URI; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUnits() { return units; } public void setUnits(String units) { this.units = units; } public Map<String, Object> getConditions() { return conditions; } public void setConditions(Map<String, Object> conditions) { this.conditions = conditions; } public Dataset.DescriptorCategory getCategory() { return category; } public void setCategory(Dataset.DescriptorCategory category) { this.category = category; } @Override public int hashCode() { int hash = 7; hash = 29 * hash + Objects.hashCode(this.URI); return hash; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final FeatureInfo other = (FeatureInfo) obj; if (!Objects.equals(this.URI, other.URI)) { return false; } return true; } }