Subversion Repositories SmartDukaan

Rev

Rev 34163 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25880 amit.gupta 1
package com.spice.profitmandi.service.inventory;
21339 kshitij.so 2
 
26665 amit.gupta 3
import java.util.Arrays;
4
 
21339 kshitij.so 5
public class AvailabilityInfo
6
{
7
    private BulkPricing[] bulkPricing;
8
    private double sellingPrice;
9
    private String color;
10
    private long item_id;
34163 ranu 11
	private long catalog_id;
21339 kshitij.so 12
    private String sellingPriceType;
13
    private double netPriceAfterCashBack;
14
    private double cash_back;
15
    private int maxQuantity;
16
    private int cash_back_type;
17
    private int quantityStep;
18
    private int availability;
34239 vikas.jang 19
    private int partnerAvailability;
21339 kshitij.so 20
    private int minBuyQuantity;
26665 amit.gupta 21
    private double mrp;
21339 kshitij.so 22
 
26665 amit.gupta 23
	@Override
24
	public String toString() {
25
		return "AvailabilityInfo [bulkPricing=" + Arrays.toString(bulkPricing) + ", sellingPrice=" + sellingPrice
34163 ranu 26
				+ ", color=" + color + ", item_id=" + item_id + ", catalog_id=" + catalog_id + ", sellingPriceType=" + sellingPriceType
26665 amit.gupta 27
				+ ", netPriceAfterCashBack=" + netPriceAfterCashBack + ", cash_back=" + cash_back + ", maxQuantity="
28
				+ maxQuantity + ", cash_back_type=" + cash_back_type + ", quantityStep=" + quantityStep
29
				+ ", availability=" + availability + ", minBuyQuantity=" + minBuyQuantity + ", mrp=" + mrp + "]";
30
	}
21339 kshitij.so 31
	public BulkPricing[] getBulkPricing() {
32
		return bulkPricing;
33
	}
26665 amit.gupta 34
	public double getMrp() {
35
		return mrp;
36
	}
37
	public void setMrp(double mrp) {
38
		this.mrp = mrp;
39
	}
21339 kshitij.so 40
	public void setBulkPricing(BulkPricing[] bulkPricing) {
41
		this.bulkPricing = bulkPricing;
42
	}
43
	public double getSellingPrice() {
44
		return sellingPrice;
45
	}
46
	public void setSellingPrice(double sellingPrice) {
47
		this.sellingPrice = sellingPrice;
48
	}
49
	public String getColor() {
50
		return color;
51
	}
52
	public void setColor(String color) {
53
		this.color = color;
54
	}
55
	public long getItem_id() {
56
		return item_id;
57
	}
58
	public void setItem_id(long item_id) {
59
		this.item_id = item_id;
60
	}
61
	public String getSellingPriceType() {
62
		return sellingPriceType;
63
	}
64
	public void setSellingPriceType(String sellingPriceType) {
65
		this.sellingPriceType = sellingPriceType;
66
	}
67
	public double getNetPriceAfterCashBack() {
68
		return netPriceAfterCashBack;
69
	}
70
	public void setNetPriceAfterCashBack(double netPriceAfterCashBack) {
71
		this.netPriceAfterCashBack = netPriceAfterCashBack;
72
	}
73
	public double getCash_back() {
74
		return cash_back;
75
	}
76
	public void setCash_back(double cash_back) {
77
		this.cash_back = cash_back;
78
	}
79
	public int getMaxQuantity() {
80
		return maxQuantity;
81
	}
82
	public void setMaxQuantity(int maxQuantity) {
83
		this.maxQuantity = maxQuantity;
84
	}
85
	public int getCash_back_type() {
86
		return cash_back_type;
87
	}
88
	public void setCash_back_type(int cash_back_type) {
89
		this.cash_back_type = cash_back_type;
90
	}
91
	public int getQuantityStep() {
92
		return quantityStep;
93
	}
94
	public void setQuantityStep(int quantityStep) {
95
		this.quantityStep = quantityStep;
96
	}
97
	public int getAvailability() {
98
		return availability;
99
	}
100
	public void setAvailability(int availability) {
101
		this.availability = availability;
102
	}
34239 vikas.jang 103
	public int getPartnerAvailability() {
104
		return partnerAvailability;
105
	}
106
	public void setPartnerAvailability(int partnerAvailability) {
107
		this.partnerAvailability = partnerAvailability;
108
	}
21339 kshitij.so 109
	public int getMinBuyQuantity() {
110
		return minBuyQuantity;
111
	}
112
	public void setMinBuyQuantity(int minBuyQuantity) {
113
		this.minBuyQuantity = minBuyQuantity;
114
	}
34163 ranu 115
 
116
	public long getCatalog_id() {
117
		return catalog_id;
118
	}
119
 
120
	public void setCatalog_id(long catalog_id) {
121
		this.catalog_id = catalog_id;
122
	}
123
 
26665 amit.gupta 124
	@Override
125
	public int hashCode() {
126
		final int prime = 31;
127
		int result = 1;
128
		result = prime * result + availability;
129
		result = prime * result + Arrays.hashCode(bulkPricing);
130
		long temp;
131
		temp = Double.doubleToLongBits(cash_back);
132
		result = prime * result + (int) (temp ^ (temp >>> 32));
133
		result = prime * result + cash_back_type;
134
		result = prime * result + ((color == null) ? 0 : color.hashCode());
135
		result = prime * result + (int) (item_id ^ (item_id >>> 32));
34163 ranu 136
		result = prime * result + (int) (catalog_id ^ (catalog_id >>> 32));
26665 amit.gupta 137
		result = prime * result + maxQuantity;
138
		result = prime * result + minBuyQuantity;
139
		temp = Double.doubleToLongBits(mrp);
140
		result = prime * result + (int) (temp ^ (temp >>> 32));
141
		temp = Double.doubleToLongBits(netPriceAfterCashBack);
142
		result = prime * result + (int) (temp ^ (temp >>> 32));
143
		result = prime * result + quantityStep;
144
		temp = Double.doubleToLongBits(sellingPrice);
145
		result = prime * result + (int) (temp ^ (temp >>> 32));
146
		result = prime * result + ((sellingPriceType == null) ? 0 : sellingPriceType.hashCode());
147
		return result;
148
	}
149
	@Override
150
	public boolean equals(Object obj) {
151
		if (this == obj)
152
			return true;
153
		if (obj == null)
154
			return false;
155
		if (getClass() != obj.getClass())
156
			return false;
157
		AvailabilityInfo other = (AvailabilityInfo) obj;
158
		if (availability != other.availability)
159
			return false;
160
		if (!Arrays.equals(bulkPricing, other.bulkPricing))
161
			return false;
162
		if (Double.doubleToLongBits(cash_back) != Double.doubleToLongBits(other.cash_back))
163
			return false;
164
		if (cash_back_type != other.cash_back_type)
165
			return false;
166
		if (color == null) {
167
			if (other.color != null)
168
				return false;
169
		} else if (!color.equals(other.color))
170
			return false;
171
		if (item_id != other.item_id)
172
			return false;
34163 ranu 173
		if (catalog_id != other.catalog_id)
174
			return false;
26665 amit.gupta 175
		if (maxQuantity != other.maxQuantity)
176
			return false;
177
		if (minBuyQuantity != other.minBuyQuantity)
178
			return false;
179
		if (Double.doubleToLongBits(mrp) != Double.doubleToLongBits(other.mrp))
180
			return false;
181
		if (Double.doubleToLongBits(netPriceAfterCashBack) != Double.doubleToLongBits(other.netPriceAfterCashBack))
182
			return false;
183
		if (quantityStep != other.quantityStep)
184
			return false;
185
		if (Double.doubleToLongBits(sellingPrice) != Double.doubleToLongBits(other.sellingPrice))
186
			return false;
187
		if (sellingPriceType == null) {
188
			if (other.sellingPriceType != null)
189
				return false;
190
		} else if (!sellingPriceType.equals(other.sellingPriceType))
191
			return false;
192
		return true;
193
	}
194
 
195
 
21339 kshitij.so 196
 
197
 
198
}