| 29578 |
tejbeer |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
public class ActivationItemDetailModel {
|
|
|
4 |
|
|
|
5 |
private String brand;
|
|
|
6 |
|
|
|
7 |
private String modelName;
|
|
|
8 |
private String modelNumber;
|
|
|
9 |
private int amount;
|
|
|
10 |
private String imei;
|
|
|
11 |
private int inventoryItemId;
|
|
|
12 |
private String invoiceNumber;
|
|
|
13 |
|
|
|
14 |
public ActivationItemDetailModel(String brand, String modelName, String modelNumber, int amount, String imei,
|
|
|
15 |
int inventoryItemId) {
|
|
|
16 |
super();
|
|
|
17 |
this.brand = brand;
|
|
|
18 |
this.modelName = modelName;
|
|
|
19 |
this.modelNumber = modelNumber;
|
|
|
20 |
this.amount = amount;
|
|
|
21 |
this.imei = imei;
|
|
|
22 |
this.inventoryItemId = inventoryItemId;
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public String getInvoiceNumber() {
|
|
|
26 |
return invoiceNumber;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
30 |
this.invoiceNumber = invoiceNumber;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public String getBrand() {
|
|
|
34 |
return brand;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public void setBrand(String brand) {
|
|
|
38 |
this.brand = brand;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public String getModelName() {
|
|
|
42 |
return modelName;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public void setModelName(String modelName) {
|
|
|
46 |
this.modelName = modelName;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public String getModelNumber() {
|
|
|
50 |
return modelNumber;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public void setModelNumber(String modelNumber) {
|
|
|
54 |
this.modelNumber = modelNumber;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public int getAmount() {
|
|
|
58 |
return amount;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public void setAmount(int amount) {
|
|
|
62 |
this.amount = amount;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public String getImei() {
|
|
|
66 |
return imei;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public void setImei(String imei) {
|
|
|
70 |
this.imei = imei;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public int getInventoryItemId() {
|
|
|
74 |
return inventoryItemId;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public void setInventoryItemId(int inventoryItemId) {
|
|
|
78 |
this.inventoryItemId = inventoryItemId;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
@Override
|
|
|
82 |
public int hashCode() {
|
|
|
83 |
final int prime = 31;
|
|
|
84 |
int result = 1;
|
|
|
85 |
result = prime * result + amount;
|
|
|
86 |
result = prime * result + ((brand == null) ? 0 : brand.hashCode());
|
|
|
87 |
result = prime * result + ((imei == null) ? 0 : imei.hashCode());
|
|
|
88 |
result = prime * result + inventoryItemId;
|
|
|
89 |
result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
|
|
|
90 |
result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
|
|
|
91 |
return result;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
@Override
|
|
|
95 |
public boolean equals(Object obj) {
|
|
|
96 |
if (this == obj)
|
|
|
97 |
return true;
|
|
|
98 |
if (obj == null)
|
|
|
99 |
return false;
|
|
|
100 |
if (getClass() != obj.getClass())
|
|
|
101 |
return false;
|
|
|
102 |
ActivationItemDetailModel other = (ActivationItemDetailModel) obj;
|
|
|
103 |
if (amount != other.amount)
|
|
|
104 |
return false;
|
|
|
105 |
if (brand == null) {
|
|
|
106 |
if (other.brand != null)
|
|
|
107 |
return false;
|
|
|
108 |
} else if (!brand.equals(other.brand))
|
|
|
109 |
return false;
|
|
|
110 |
if (imei == null) {
|
|
|
111 |
if (other.imei != null)
|
|
|
112 |
return false;
|
|
|
113 |
} else if (!imei.equals(other.imei))
|
|
|
114 |
return false;
|
|
|
115 |
if (inventoryItemId != other.inventoryItemId)
|
|
|
116 |
return false;
|
|
|
117 |
if (modelName == null) {
|
|
|
118 |
if (other.modelName != null)
|
|
|
119 |
return false;
|
|
|
120 |
} else if (!modelName.equals(other.modelName))
|
|
|
121 |
return false;
|
|
|
122 |
if (modelNumber == null) {
|
|
|
123 |
if (other.modelNumber != null)
|
|
|
124 |
return false;
|
|
|
125 |
} else if (!modelNumber.equals(other.modelNumber))
|
|
|
126 |
return false;
|
|
|
127 |
return true;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
@Override
|
|
|
131 |
public String toString() {
|
|
|
132 |
return "ActivationItemDetailModel [brand=" + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber
|
|
|
133 |
+ ", amount=" + amount + ", imei=" + imei + ", inventoryItemId=" + inventoryItemId + "]";
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
}
|