Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import com.spice.profitmandi.dao.enumuration.catalog.AmountType;import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;import java.util.Objects;public class SchemeOfferModel {private int schemeId;private String schemeName;private int catalogId;private SchemeType type;private AmountType amountType;private float amount;public int getSchemeId() {return schemeId;}public void setSchemeId(int schemeId) {this.schemeId = schemeId;}public String getSchemeName() {return schemeName;}public void setSchemeName(String schemeName) {this.schemeName = schemeName;}public int getCatalogId() {return catalogId;}public void setCatalogId(int catalogId) {this.catalogId = catalogId;}public SchemeType getType() {return type;}public void setType(SchemeType type) {this.type = type;}public AmountType getAmountType() {return amountType;}public void setAmountType(AmountType amountType) {this.amountType = amountType;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;SchemeOfferModel that = (SchemeOfferModel) o;return schemeId == that.schemeId && catalogId == that.catalogId && Float.compare(amount, that.amount) == 0 && Objects.equals(schemeName, that.schemeName) && type == that.type && amountType == that.amountType;}@Overridepublic int hashCode() {return Objects.hash(schemeId, schemeName, catalogId, type, amountType, amount);}@Overridepublic String toString() {return "SchemeOfferModel{" +"schemeId=" + schemeId +", schemeName='" + schemeName + '\'' +", catalogId=" + catalogId +", type=" + type +", amountType=" + amountType +", amount=" + amount +'}';}}