/* * Seldon -- open source prediction engine * ======================================= * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * ********************************************************************************************** * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ********************************************************************************************** */ package io.seldon.client.beans; import org.springframework.stereotype.Component; /** * @author claudio */ @Component public class ActionTypeBean extends ResourceBean { private static final long serialVersionUID = 6948069847428529867L; private Integer typeId; private String name; private Double weight; private Double defValue; private Integer linkType; private Boolean semantic; public ActionTypeBean() {} public Integer getTypeId() { return typeId; } public void setTypeId(Integer typeId) { this.typeId = typeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Double getWeight() { return weight; } public void setWeight(Double weight) { this.weight = weight; } public Double getDefValue() { return defValue; } public void setDefValue(Double defValue) { this.defValue = defValue; } public Integer getLinkType() { return linkType; } public void setLinkType(Integer linkType) { this.linkType = linkType; } public Boolean getSemantic() { return semantic; } public void setSemantic(Boolean semantic) { this.semantic = semantic; } @Override public String toString() { return "ActionTypeBean" + "id='" + typeId + '\'' + ", name='" + name + '}'; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ActionTypeBean)) return false; ActionTypeBean that = (ActionTypeBean) o; if (defValue != null ? !defValue.equals(that.defValue) : that.defValue != null) return false; if (linkType != null ? !linkType.equals(that.linkType) : that.linkType != null) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (semantic != null ? !semantic.equals(that.semantic) : that.semantic != null) return false; if (typeId != null ? !typeId.equals(that.typeId) : that.typeId != null) return false; if (weight != null ? !weight.equals(that.weight) : that.weight != null) return false; return true; } @Override public int hashCode() { int result = typeId != null ? typeId.hashCode() : 0; result = 31 * result + (name != null ? name.hashCode() : 0); result = 31 * result + (weight != null ? weight.hashCode() : 0); result = 31 * result + (defValue != null ? defValue.hashCode() : 0); result = 31 * result + (linkType != null ? linkType.hashCode() : 0); result = 31 * result + (semantic != null ? semantic.hashCode() : 0); return result; } }