| 35501 |
ranu |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
|
|
|
4 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
|
|
5 |
|
|
|
6 |
import java.util.Objects;
|
|
|
7 |
|
|
|
8 |
public class SchemeOfferModel {
|
|
|
9 |
private int schemeId;
|
|
|
10 |
private String schemeName;
|
|
|
11 |
private int catalogId;
|
|
|
12 |
private SchemeType type;
|
|
|
13 |
private AmountType amountType;
|
|
|
14 |
private float amount;
|
|
|
15 |
|
|
|
16 |
public int getSchemeId() {
|
|
|
17 |
return schemeId;
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
public void setSchemeId(int schemeId) {
|
|
|
21 |
this.schemeId = schemeId;
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
public String getSchemeName() {
|
|
|
25 |
return schemeName;
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public void setSchemeName(String schemeName) {
|
|
|
29 |
this.schemeName = schemeName;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
public int getCatalogId() {
|
|
|
33 |
return catalogId;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
public void setCatalogId(int catalogId) {
|
|
|
37 |
this.catalogId = catalogId;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
public SchemeType getType() {
|
|
|
41 |
return type;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
public void setType(SchemeType type) {
|
|
|
45 |
this.type = type;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
public AmountType getAmountType() {
|
|
|
49 |
return amountType;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public void setAmountType(AmountType amountType) {
|
|
|
53 |
this.amountType = amountType;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public float getAmount() {
|
|
|
57 |
return amount;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setAmount(float amount) {
|
|
|
61 |
this.amount = amount;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
@Override
|
|
|
65 |
public boolean equals(Object o) {
|
|
|
66 |
if (this == o) return true;
|
|
|
67 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
68 |
SchemeOfferModel that = (SchemeOfferModel) o;
|
|
|
69 |
return schemeId == that.schemeId && catalogId == that.catalogId && Float.compare(amount, that.amount) == 0 && Objects.equals(schemeName, that.schemeName) && type == that.type && amountType == that.amountType;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
@Override
|
|
|
73 |
public int hashCode() {
|
|
|
74 |
return Objects.hash(schemeId, schemeName, catalogId, type, amountType, amount);
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
@Override
|
|
|
78 |
public String toString() {
|
|
|
79 |
return "SchemeOfferModel{" +
|
|
|
80 |
"schemeId=" + schemeId +
|
|
|
81 |
", schemeName='" + schemeName + '\'' +
|
|
|
82 |
", catalogId=" + catalogId +
|
|
|
83 |
", type=" + type +
|
|
|
84 |
", amountType=" + amountType +
|
|
|
85 |
", amount=" + amount +
|
|
|
86 |
'}';
|
|
|
87 |
}
|
|
|
88 |
}
|