| 27505 |
tejbeer |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
public class WarehouseWiseStockModel {
|
|
|
4 |
private int warehouseId;
|
|
|
5 |
private String warehouseName;
|
|
|
6 |
private int stockQty;
|
|
|
7 |
private double stockValue;
|
|
|
8 |
|
|
|
9 |
public WarehouseWiseStockModel(int warehouseId, int stockQty, double stockValue) {
|
|
|
10 |
super();
|
|
|
11 |
this.warehouseId = warehouseId;
|
|
|
12 |
this.stockQty = stockQty;
|
|
|
13 |
this.stockValue = stockValue;
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
@Override
|
|
|
17 |
public String toString() {
|
|
|
18 |
return "WarehouseWiseStockModel [warehouseId=" + warehouseId + ", warehouseName=" + warehouseName
|
|
|
19 |
+ ", stockQty=" + stockQty + ", stockValue=" + stockValue + "]";
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
public int getWarehouseId() {
|
|
|
23 |
return warehouseId;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public void setWarehouseId(int warehouseId) {
|
|
|
27 |
this.warehouseId = warehouseId;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public String getWarehouseName() {
|
|
|
31 |
return warehouseName;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public void setWarehouseName(String warehouseName) {
|
|
|
35 |
this.warehouseName = warehouseName;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public int getStockQty() {
|
|
|
39 |
return stockQty;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public void setStockQty(int stockQty) {
|
|
|
43 |
this.stockQty = stockQty;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public double getStockValue() {
|
|
|
47 |
return stockValue;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public void setStockValue(double stockValue) {
|
|
|
51 |
this.stockValue = stockValue;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
@Override
|
|
|
55 |
public int hashCode() {
|
|
|
56 |
final int prime = 31;
|
|
|
57 |
int result = 1;
|
|
|
58 |
result = prime * result + stockQty;
|
|
|
59 |
long temp;
|
|
|
60 |
temp = Double.doubleToLongBits(stockValue);
|
|
|
61 |
result = prime * result + (int) (temp ^ (temp >>> 32));
|
|
|
62 |
result = prime * result + warehouseId;
|
|
|
63 |
result = prime * result + ((warehouseName == null) ? 0 : warehouseName.hashCode());
|
|
|
64 |
return result;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
@Override
|
|
|
68 |
public boolean equals(Object obj) {
|
|
|
69 |
if (this == obj)
|
|
|
70 |
return true;
|
|
|
71 |
if (obj == null)
|
|
|
72 |
return false;
|
|
|
73 |
if (getClass() != obj.getClass())
|
|
|
74 |
return false;
|
|
|
75 |
WarehouseWiseStockModel other = (WarehouseWiseStockModel) obj;
|
|
|
76 |
if (stockQty != other.stockQty)
|
|
|
77 |
return false;
|
|
|
78 |
if (Double.doubleToLongBits(stockValue) != Double.doubleToLongBits(other.stockValue))
|
|
|
79 |
return false;
|
|
|
80 |
if (warehouseId != other.warehouseId)
|
|
|
81 |
return false;
|
|
|
82 |
if (warehouseName == null) {
|
|
|
83 |
if (other.warehouseName != null)
|
|
|
84 |
return false;
|
|
|
85 |
} else if (!warehouseName.equals(other.warehouseName))
|
|
|
86 |
return false;
|
|
|
87 |
return true;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
}
|